• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Struts 2 client side validation not working with xml configuration

 
kartik krishnan
Ranch Hand
Posts: 63
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Maybe post it here too, otherwise anything here will be completely out of context.
 
kartik krishnan
Ranch Hand
Posts: 63
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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:

 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic