• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Struts 2 client side validation not working with xml configuration

 
Ranch Hand
Posts: 63
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Author
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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:

 
reply
    Bookmark Topic Watch Topic
  • New Topic