Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Validation xml using action path

 
stephan babu
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i have defined validation xml, (using action path in name attribute)

<form name="/actionname">
<field > ...
...
...
</form>

my doubt is,

how i implement in client side validation. that is what i have to give in <html:javascript formName="">

please help me.



 
Pyla Rao
Ranch Hand
Posts: 51
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
For client side means we have ti interact with browser, so we can use java script.
 
Sandy Chatterjee
Ranch Hand
Posts: 55
Hibernate Java Mac
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In Struts 1
Form data can be validated on the client side as well as on the server side using the Validator Framework,
which was developed as a third-party add on to Struts. This framework generates the java script and it can be
used to validate the form data on the client browser. Server side validation of your form can be carried out by
subclassing your form class with DynaValidatorForm class. The Validator Framework uses 2 xml configuration
files validator-rules.xml (defines reusable standard validation routines, which are usable in validator.xml) and
validator.xml (defines validation applicable to a form bean).

Regards,
Sandy
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic