struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Kawczynski, David" <>
Subject RE: Struts 2 Client & Server Side Validation
Date Thu, 30 Oct 2008 20:31:50 GMT
That validate="true" in the form field only serves to place a required 
asterisk next to your field's label. 

First, you will want to ensure you are not using a simple theme for 
the form tag.

Next, you will want to use an <sx:head> tag in your page's head tags

Finally, you will need to have validation xml files defining your 
Validation rules for the action (and optionally, method) being 
called by the struts framework.

Check out these

-----Original Message-----
From: Struts Developer [] 
Sent: Thursday, October 30, 2008 4:24 PM
Subject: Struts 2 Client & Server Side Validation

Hello, In our current project are using struts 2.0 and would like to
advantage of the struts validation framework. We would like our form
to be validated both on the client and server side. If i have "VALIDATE
TRUE" in the form  field will the validation happen only on client side?
some reason if the client side validation does not happen will struts do
validation on the server side for the same field using the same XML
configuration files?
Notice:  This e-mail message, together with any attachments, contains
information of Merck & Co., Inc. (One Merck Drive, Whitehouse Station,
New Jersey, USA 08889), and/or its affiliates (which may be known
outside the United States as Merck Frosst, Merck Sharp & Dohme or
MSD and in Japan, as Banyu - direct contact information for affiliates is
available at that may be
confidential, proprietary copyrighted and/or legally privileged. It is
intended solely for the use of the individual or entity named on this
message. If you are not the intended recipient, and have received this
message in error, please notify us immediately by reply e-mail and
then delete it from your system.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message