• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

dynavalidatorform being ignored?

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I've been stuck on this particular error for the last day or so. I have a page using a DynaValidatorForm to check to make sure the user has actually input the required information to perform a search. The problem I'm having is that when I submit, regardless of whether the input is valid or not, it throws an error in tomcat 5.0 and then keeps on going without any validation. The error is as follows:





Here's the bean's pretty straightforward definition in struts-conf:





This is validation.xml (validator-rules.xml is just the default that came with struts)





And finally the JSP contains





Any help would be appreciated, it seems to match all the examples I've seen very closely and I'm not entirely sure what "ERROR validator.DynaValidatorForm" is supposed to be telling me. Thanks.
[ March 18, 2005: Message edited by: Ben Pennell ]
 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I just read a post on experts-exchange.com from TimYates that says...

"I would just check for it in the validate method of the ActionForm class (if there is one)

I don't think the validate.xml supports String[] at the moment...

The validate method inside the actionform is well within the struts standard...

I prefer it to javascript, as javascript depends on the browser supporting it...so you can still get invalid posts if the user turns it off...
"

Hope that helps, Angela
 
pie sneak
Posts: 4727
Mac VI Editor Ruby
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Check tomcat's log files for more information. Everything in your code seems fine.

I noticed that you posted this same question to sun's forum. Please be considerate to the people both forums by updating both of your postings when you find an answer, so that there won't be any kind-hearted souls trying to help you long after problem is fixed.

Thanks, and welcome to the ranch, Ben!
 
reply
    Bookmark Topic Watch Topic
  • New Topic