struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Kawczynski, David" <david_kawczyn...@merck.com>
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 
http://java-x.blogspot.com/2006/11/struts-2-validation.html

http://www.roseindia.net/struts/struts_validator_framework.shtml

-----Original Message-----
From: Struts Developer [mailto:developerstruts@gmail.com] 
Sent: Thursday, October 30, 2008 4:24 PM
To: user@struts.apache.org
Subject: Struts 2 Client & Server Side Validation

Hello, In our current project are using struts 2.0 and would like to
take
advantage of the struts validation framework. We would like our form
fields
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?
For
some reason if the client side validation does not happen will struts do
the
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 http://www.merck.com/contact/contacts.html) 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: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Mime
View raw message