• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Struts 13.8 + Exception Handeling Problem

 
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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 ChainBase.java (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.
 
reply
    Bookmark Topic Watch Topic
  • New Topic