• Post Reply Bookmark Topic Watch Topic
  • New Topic

DynaValidatorForm and Struts validator - not working at all...  RSS feed

Jacek The Java Newbie
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I defined a simple DynaValidatorForm:

Have an action that uses it:

Set up validation.xml to make "personnelID" an integer:

Properly hooked up the Javascript in the JSP:

The client-side Javascript validation works perfectly. No issue there. But, if I disable Javascript in IE and try to test the server-side valdidation, nothing happens. It happily gets to my Action even though I have entered a non-integer value into the PersonnelID field.

Help! I am losing my mind trying to figure out where is the problem in the myriad of Struts XML files.

P.S. I am using Netbeans 5.0, using its Struts support. So the web.xml and validation-rules.xml are all configured and set up properly (I believe).
[ February 07, 2006: Message edited by: Jacek The Java Newbie ]
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!