Win a copy of TDD for a Shopping Website LiveProject this week in the Testing forum!
  • 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 ...
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Jeanne Boyarsky
  • Tim Cooke
  • Liutauras Vilda
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Frits Walraven
  • Piet Souris
  • Himai Minh

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

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 ]
I'm all tasted up for a BLT! This tiny ad wants a monte cristo!
Free, earth friendly heat - from the CodeRanch trailboss
    Bookmark Topic Watch Topic
  • New Topic