This week's book giveaway is in the Agile forum.
We're giving away four copies of The Software Craftsman and have Sandro Mancuso on-line!
See this thread for details.
The moose likes Struts and the fly likes Struts 13.8 + Exception Handeling Problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of The Software Craftsman this week in the Agile forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Struts 13.8 + Exception Handeling Problem" Watch "Struts 13.8 + Exception Handeling Problem" New topic

Struts 13.8 + Exception Handeling Problem

Garg Amit

Joined: Jan 13, 2009
Posts: 21
I am using exception handeling framework of Struts 1.3.8. I have made few command and commands are throwing exceptions if certain validation fails on request. As per the Struts 1.3.8 chainConfig.xml, ExceptionCatcher Command will catch the exception and will execute the ExceptionHandler command. If there is not any exception in the execution of ExceptionHandler command, then this flow is fine but if there is any exception then this flow creates problem.

Below source code was taken from Struts and Apache commons site.

Please refer below code from (org.apache.commons.chain.impl).

Requirement - If there is any exception in the postprocess...then I want to render another page. I figured out that postprocess was throwing servletexception and I configured a different page in struts-config.xml but it did not work.

Can somebody advice any possible solution to the problem.
Have you tried LearnNowOnline?
subject: Struts 13.8 + Exception Handeling Problem