File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Struts and the fly likes DynaValidatorForm and Struts validator - not working at all... Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "DynaValidatorForm and Struts validator - not working at all..." Watch "DynaValidatorForm and Struts validator - not working at all..." New topic
Author

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

Jacek The Java Newbie
Greenhorn

Joined: Feb 07, 2006
Posts: 2
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 ]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: DynaValidatorForm and Struts validator - not working at all...