I heard some people said "not to catch any exception" in Action or anywhere, just let them flow, struts can handle it and eventually it can be reflected in the JSP. Is that true ?
However, in one of my project, I am REQUIRED to redirect the page to a company customized error page when a specific exception appears. For example, if "No sufficient Fund exception" appears we need to direct to the bank's specific warning page. Is this doable and how ? please advise as I have not much struts experience yet.
as long as the exception thrown to the framework extends java.lang.Exception, struts will handle it provided that you define what to do with the exception. in your struts-config.xml, you can define exception globally (SessionExpiredException is a good example) or locally to an action (InsufficientFundException). each exception can be mapped (using the path attribute) to a jsp, tiles definition, or action mapping. -/a
-/a<br />certified slacker...yes, my last name is 'do' - <a href="http://www.luckycouple.com" target="_blank" rel="nofollow">luckycouple.com</a>