• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Tim Cooke
  • Devaka Cooray
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Rob Spoor
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Piet Souris
  • Mikalai Zaikin
Bartenders:
  • Carey Brown
  • Roland Mueller

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

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 ]
 
Men call me Jim. Women look past me to this tiny ad:
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic