aspose file tools*
The moose likes Struts and the fly likes Validator configuration Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Validator configuration" Watch "Validator configuration" New topic

Validator configuration

Waldle Cai
Ranch Hand

Joined: Aug 16, 2000
Posts: 34
I can't get the Validator work. Here is what I did:
1. public class SecurityForm extends org.apache.struts.validator.ValidatorForm {
2. config struts-config.xml accordingly.(set validate to 'true', 'securityForm' as form bean name etc)
3. config validation.xml as following:
<form name="securityForm">
<arg0 key="logon.username"/>
4. no change on validator-rules.xml
5. add property for 'logon.username' in applicaiton properties file.
But when I sumbit the form, I got '500 Internal Server' error, but there is no error message from the web server log. Any body has any idea?
Thanks in advance
dennis yarborough

Joined: Dec 03, 2002
Posts: 4
what version of struts are you using? I'm using struts on WAS 4.0 (wsad) and needed to use struts 1.1(beta3) to get validation working properly.
It is sorta covered in the JavaRanch Style Guide.
subject: Validator configuration