This week's book giveaway is in the OCMJEA forum.
We're giving away four copies of OCM Java EE 6 Enterprise Architect Exam Guide and have Paul Allen & Joseph Bambara on-line!
See this thread for details.
The moose likes Struts and the fly likes Problem with global-exception tag Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Problem with global-exception tag" Watch "Problem with global-exception tag" New topic
Author

Problem with global-exception tag

Sandeep Ghosh
Ranch Hand

Joined: Jan 23, 2002
Posts: 145
Hi,
I have this in struts-config.xml

One of my Action's class execute method is throwing an Exception.
In GlobalExceptionHandler class I am just redirecting it to some page,but it is giving this error
javax.servlet.ServletException
at org.apache.struts.action.RequestProcessor.processException(RequestProcessor.java:526)
at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:467)
at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:274)
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1413)
at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:522)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
...
...
Could anybody please suggest what is right way to implemet this tag.
Sonu
Sandeep Ghosh
Ranch Hand

Joined: Jan 23, 2002
Posts: 145
Hi Friends,
For anybody who is having similier problem , I have managed to find a nice example showing the use of Global Exception handler in http://examples.oreilly.com/jakarta/ . Unzip the source.zip and look at BaseException.java file.
Cheers
Sonu
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Problem with global-exception tag