Announcement Announcement Module
Collapse
No announcement yet.
@annotation Mask not find :/ Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • @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, 07:41 AM.

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

    Comment

    Working...
    X