You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Sriram Hariharan <st...@hotmail.com> on 2002/10/10 12:38:24 UTC
Problems with Validation- not working
Hi, I'm facing problems with validation in Struts. I'm not able to validate
the fields username (required) and password (required,mask) even after the
following steps.
1. Updated struts-config.xml with 'message-resources' and 'plugin'.
2. Added Validator Jar and version 1.2 of the Jakarta Regular Expression
Package.
3. Made modifications to web.xml file to load the ValidatorServlet
4. Extended ValidatorForm instead of ActionForm.
5. Created file validation.xml.
7. Updated Applicationresources.properties file.
6. The entire application gets deployed in jBoss-3.0.3 without any errors.
Still the form fields doenst get validated. Am I missing something? Someone
please let me know as I'm new to it.
Thanks, SRIRAM.
_________________________________________________________________
Send and receive Hotmail on your mobile device: http://mobile.msn.com
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
Re: Problems with Validation- not working
Posted by David Derry <dd...@acm.org>.
Do you have validate="true" in the action mapping in struts-config?
----- Original Message -----
From: "Sriram Hariharan" <st...@hotmail.com>
> Hi, I'm facing problems with validation in Struts. I'm not able to
validate
> the fields username (required) and password (required,mask) even after the
> following steps.
>
> 1. Updated struts-config.xml with 'message-resources' and 'plugin'.
> 2. Added Validator Jar and version 1.2 of the Jakarta Regular Expression
> Package.
> 3. Made modifications to web.xml file to load the ValidatorServlet
> 4. Extended ValidatorForm instead of ActionForm.
> 5. Created file validation.xml.
> 7. Updated Applicationresources.properties file.
> 6. The entire application gets deployed in jBoss-3.0.3 without any errors.
>
> Still the form fields doenst get validated. Am I missing something?
Someone
> please let me know as I'm new to it.
>
> Thanks, SRIRAM.
>
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>