Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Validator configuration  RSS feed

 
Waldle Cai
Ranch Hand
Posts: 34
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
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:
<formset>
<form name="securityForm">
<field
property="userID"
depends="required">
<arg0 key="logon.username"/>
</field>
</form>
</formset>
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
Waldle
 
dennis yarborough
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!