This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Struts and the fly likes Validation xml using action path Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Validation xml using action path" Watch "Validation xml using action path" New topic
Author

Validation xml using action path

stephan babu
Greenhorn

Joined: Apr 23, 2012
Posts: 13
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

Joined: Jul 10, 2012
Posts: 50
For client side means we have ti interact with browser, so we can use java script.
Sandy Chatterjee
Ranch Hand

Joined: Jun 27, 2012
Posts: 55

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


Take up one idea. Make that one idea your life; dream of it; think of it; live on that idea. Let the brain, the body, muscles, nerves, every part of your body be full of that idea, and just leave every other idea alone. This is the way to success.
 
Consider Paul's rocket mass heater.
 
subject: Validation xml using action path
 
Similar Threads
Struts validation problem..
Redisplay Variables in JSP after Failed Validation?
Client-side javascript validation not working with Struts
validation
declarative validation of wizard pages