Win a copy of Testing JavaScript Applications this week in the HTML Pages with CSS and JavaScript 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Carey Brown

xdoclet and struts and validator

 
Ranch Hand
Posts: 66
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm using xdoclet to generate my struts config etc files and I'm having a
problem.
The symptom is that when I click on the action (foo.do) link on
my page it goes straight to the success page - no sign of the input page.
Looking at the server logs I note these three things happen, in this order:
1. The action form's constructor is called.
2. "org.apache.commons.validator.ValidatorException: Resources not defined
for Validator" is thrown.
3. The action's execute method is called.
Validator.xml is in the web-inf directory of my war.
Can anyone give me a pointer to what I should check here ? Is this one
error, or two unrelated ones do you think ?
Thanks in advance
Edward
 
Ranch Hand
Posts: 1209
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I assume you are using struts1.1. I dont know how validator works for struts1.0
If you have your validation.xml in your web-inf folder, do you have an entry for validation plug-in entry in your struts-config.xml file like this?
 
Edward Kenworthy
Ranch Hand
Posts: 66
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ahha! Of course, thankyou. And that explains my other problem, the input tag depends on the validator framework working.
Thanks,
Edward
 
Well behaved women rarely make history - Eleanor Roosevelt. tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
    Bookmark Topic Watch Topic
  • New Topic