aspose file tools*
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 EJB 3 in Action this week in the EJB and other Java EE Technologies 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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Validation xml using action path
 
Similar Threads
Redisplay Variables in JSP after Failed Validation?
declarative validation of wizard pages
validation
Client-side javascript validation not working with Struts
Struts validation problem..