File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Struts and the fly likes Error object is not caught by the Controller Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Error object is not caught by the Controller" Watch "Error object is not caught by the Controller" New topic
Author

Error object is not caught by the Controller

shashikant nagavarapu
Greenhorn

Joined: Jul 08, 2005
Posts: 26
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

Joined: Feb 15, 2005
Posts: 4864
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.


Merrill
Consultant, Sima Solutions
shashikant nagavarapu
Greenhorn

Joined: Jul 08, 2005
Posts: 26
Hello Merrill,
Thanks for the reply. I am overriding the validate method.
The code is:


Thanks and Regards
Shashikant
shashikant nagavarapu
Greenhorn

Joined: Jul 08, 2005
Posts: 26
The method name is typed incoorectly as execute. I am sorry for that
The method is:
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Error object is not caught by the Controller