Yes there is way.....

Use Web.xml's error-page mapping....

  <error-page>
    <!--
      * This is usually happens on the JSP pages.  It can be throwns by
      * custom tags or Java scriptlets.  Others exceptions, like Remote-
      * Exception, can either be handled declaratively within the 'struts-
      * config.xml' or programaticly withing the Action classes and/or its
      * ActionMapping.
      -->
    <exception-type>java.lang.Exception</exception-type>
    <location>/errors/catchError.do</location>
  </error-page>

And handle your exception declaratively in your struts-config.xml.  Usually,
I have this
As a Sub-module that handles all the global and plugable exception handling
so I can re-use 
This sub-module another application.

danny

-----Original Message-----
From: Herve Tchepannou [mailto:[EMAIL PROTECTED]] 
Sent: Monday, August 19, 2002 1:19 PM
To: Struts Users Mailing List
Subject: Is thare any way to make struts handle Exceptions thrown from ?


Is thare any way to make struts handle Exceptions thrown from JSP custom
tags? My goal the to make my application behave exactly as if the error was
thrown from a Action object.

thanx

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

Reply via email to