• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Error object is not caught by the Controller

 
shashikant nagavarapu
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello Ranchers,
I am new to struts and working with Jaakarta StrutsLive. I have just started my first application and I find that the errors ( blank fields) are not displayed even after entering appropriate entries. I am sending the config. Please check it and indicate if there are any errors and recommendations to improve on it. Thanks
 
Merrill Higginson
Ranch Hand
Posts: 4864
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What method are you using to validate? Are you overriding the validate() method of your ActionForm, or are you using the Struts Validation Framework?

If you are using the Struts Validation Framework, one thing I did notice about your configuration file is that there is no <plugin> entry for the Struts Validation plugin. You will need that in order for the validation framework to function.

If you are overriding the validate() method, Please post that method if you want help in debugging it.
 
shashikant nagavarapu
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello Merrill,
Thanks for the reply. I am overriding the validate method.
The code is:


Thanks and Regards
Shashikant
 
shashikant nagavarapu
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The method name is typed incoorectly as execute. I am sorry for that
The method is:
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic