File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Validation xml using action path" Watch "Validation xml using action path" New topic

Validation xml using action path

stephan babu

Joined: Apr 23, 2012
Posts: 13
i have defined validation xml, (using action path in name attribute)

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

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: 51
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).


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:
subject: Validation xml using action path
It's not a secret anymore!