Hi,
There is a nice tutorial at
http://www.roseindia.net/struts/address_struts_validator.shtml
This will help you
Regards
Andrey Grishin <[EMAIL PROTECTED]> wrote:
Good morning/day/evening, All!
I use Struts 1.2.6.
1. I took struts-blank.war application, deploy it under the Tomcat 4.1.29
2. Created login.jsp
--------------------
validateLogonForm(this);" focus="login" action="/Welcome">
Username
Password
--------------------
3. I used logonForm definition and validations from struts-blank.war
--------------- excerpt from struts-config.xml -----------
type="org.apache.struts.action.DynaActionForm">
---------------------------------------------------------
--------------- excerpt from validation.xml -----------
---------------------------------------------------------
All javascript validations worked!!!
But when I changed the validation.xml to
--------------- excerpt from NEW validation.xml -----------
test
(*this* == username))
---------------------------------------------------------
There was NO validation for password field. No javascript code was generated
for validwhen. No exceptions in log. NOTHING...
The only difference I made from working example is change of "required"
validator to "validwhen" validator in validation.xml. So, all
field/form/other names are correct.
What's wrong with me/validwhen/the way I use validwhen/anything else?!?!?!?!
Any ideas will be appreciated.
P.S. Can anyone send me a minimal example application with working validwhen
to andryxagmail.com?
Regards, Andrey Grishin.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------
Yahoo! Mail
Stay connected, organized, and protected. Take the tour