File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Struts and the fly likes Struts 2 client side validation not working with xml configuration Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Struts 2 client side validation not working with xml configuration" Watch "Struts 2 client side validation not working with xml configuration" New topic
Author

Struts 2 client side validation not working with xml configuration

kartik krishnan
Ranch Hand

Joined: Nov 19, 2006
Posts: 63
All the information is here : http://stackoverflow.com/questions/2647594/trouble-with-client-side-validation-using-struts-2-xml-based-validation-rules-no

I apologize for cross posting but this is really critical and I don't know what I am doing wrong. I looked at this and can not figure out where I am going wrong.
Thanks,

Kartik
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

Maybe post it here too, otherwise anything here will be completely out of context.
kartik krishnan
Ranch Hand

Joined: Nov 19, 2006
Posts: 63
As I mentioned earlier, I am unable to validate my form inputs. When I don't select any option from the pull down menu (The default value is ""), even then the action method is executed and result page displayed. I want it to show the configured error message from the xml file. I am not sure what I am doing wrong. Any help would be appreciated.

My form jsp is given below


My validators in WEB-INF/classes are given below:


My action specific validation rule (ActionItemTrackingAction-findByCriteria-validation.xml) is in WEB-INF/classes.



My struts mapping


My action-class is given below:

 
 
subject: Struts 2 client side validation not working with xml configuration
 
Similar Threads
requiredif Validation - Struts Client side validation
client side validation vs server side validation
struts validator
client side and serverside validation
client side validation in struts1.0