Results 1 to 2 of 2

Thread: @annotation Mask not find :/

  1. #1
    Join Date
    Oct 2011
    Posts
    19

    Default @annotation Mask not find :/

    Hi people
    i have a problem

    i want to create a formcontroller but i want to put annotation @Mask but eclipse not find this recognize this annotation.
    my config is Spring mvcweb 3.0.0

    i use a spring template spring mvc
    i dont know where is the problem maybe i have to upgrade my Spring MVC3.jar

    my controller
    :
    Code:
    import org.springframework.beans.factory.annotation.Autowired;
    import org.springframework.format.annotation.NumberFormat;
    import org.springframework.stereotype.Controller;
    import org.springframework.web.bind.support.SessionStatus;
    
    import com.sun.istack.internal.NotNull;
    
    import validator.PersonneFormValidator;
    
    import dao.impl.PersonneDao;
    
    
    @Controller
    public class IdentificationController {
    	
    	@Autowired
    	 private PersonneDao personneDao;
    	   
     @Autowired
     private PersonneFormValidator validator;
    
    	@NotNull
    	@NumberFormat(pattern="[0-9]+")
    	String id;
    	@NotNull
    	// @Mask("(\\w)*(_-)*(\\w)+@(\\w)+.(\\w)+")
        @Mask(pattern="dsdfsd")
    	String password;
    	
    	
    }
    Last edited by stanilas; Mar 9th, 2012 at 07:41 AM.

  2. #2
    Join Date
    Oct 2011
    Posts
    19

    Default

    i read on tuto and @Mask not existing !!!!!
    you have to change @Pattern but eclipse not recognize it .

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •