hI, 

in your *.struts.xml file ( a subcontext struts configuration file) 

Define a global mapping to jsp like 
<global-results>
<result name="HandleSqlExceptionAction">../Error.jsp</result>
</global-results>

map the exception to the global mapping defined above
<global-exception-mappings>
<exception-mapping exception="java.sql.SQLException"
result="HandleSqlExceptionAction"/>
</global-exception-mappings> 


Note : I have kept this is in one of the sub context struts configuration
file which gets included in the struts.xml.  YOu can put this in struts.xml
and try it ou

hope that helps
-- 
View this message in context: 
http://www.nabble.com/How-to-setup-exceptions-with-zero-configuration--tp20031565p20032460.html
Sent from the Struts - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to