aspose file tools*
The moose likes Struts and the fly likes validation in struts2 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "validation in struts2" Watch "validation in struts2" New topic
Author

validation in struts2

sarada bokka
Ranch Hand

Joined: Jan 13, 2010
Posts: 80
Hi All,

I am not able to get the validation errors from Login-validation.xml when i am using Modeldriven .(Without ModelDriven it is working fine like setters & getters)

Login-validation.xml



LoginAction.java



login.jsp






[Thumbnail for error.jpg]

sarada bokka
Ranch Hand

Joined: Jan 13, 2010
Posts: 80
I am struck with the day.

Can any one help me please???
Ankit Garg
Sheriff

Joined: Aug 03, 2008
Posts: 9313
    
  17

Sarada you should be patient, bumping a topic after one and a half hour is not considered good. You should wait more than that for a reply.

[Edit: didn't see the attachment before]
Can you show us your struts.xml file and the location where your login.jsp page is. Also isn't the name of the validation file supposed to be LoginAction-validation.xml ??


SCJP 6 | SCWCD 5 | Javaranch SCJP FAQ | SCWCD Links
sarada bokka
Ranch Hand

Joined: Jan 13, 2010
Posts: 80
It's working fine after changing it to LoginAction-validation.xml

Thank you....
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: validation in struts2