struts-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From craig...@locus.apache.org
Subject cvs commit: jakarta-struts/src/share/org/apache/struts/action Action.java
Date Thu, 12 Oct 2000 22:31:33 GMT
craigmcc    00/10/12 15:31:32

  Modified:    src/share/org/apache/struts/action Action.java
  Log:
  Define a request attributes key under which a Throwable may be stored by
  any custom tag that throws a JspException.  This Throwable can be used by
  error pages to better describe what really caused the problem.  (In JSP 1.2
  the JspException class will have a rootCause property the way ServletException
  does -- in the mean time, this is a workaround).
  
  This commit will be followed by updates to the various tags to take advantage
  of this capability.
  
  Submitted by:  Ken X Horn <horn_ken@jpmorgan.com>
  
  Revision  Changes    Path
  1.7       +14 -4     jakarta-struts/src/share/org/apache/struts/action/Action.java
  
  Index: Action.java
  ===================================================================
  RCS file: /home/cvs/jakarta-struts/src/share/org/apache/struts/action/Action.java,v
  retrieving revision 1.6
  retrieving revision 1.7
  diff -u -r1.6 -r1.7
  --- Action.java	2000/10/12 21:51:00	1.6
  +++ Action.java	2000/10/12 22:31:32	1.7
  @@ -1,7 +1,7 @@
   /*
  - * $Header: /home/cvs/jakarta-struts/src/share/org/apache/struts/action/Action.java,v 1.6
2000/10/12 21:51:00 craigmcc Exp $
  - * $Revision: 1.6 $
  - * $Date: 2000/10/12 21:51:00 $
  + * $Header: /home/cvs/jakarta-struts/src/share/org/apache/struts/action/Action.java,v 1.7
2000/10/12 22:31:32 craigmcc Exp $
  + * $Revision: 1.7 $
  + * $Date: 2000/10/12 22:31:32 $
    *
    * ====================================================================
    *
  @@ -105,7 +105,7 @@
    * by this Action.
    *
    * @author Craig R. McClanahan
  - * @version $Revision: 1.6 $ $Date: 2000/10/12 21:51:00 $
  + * @version $Revision: 1.7 $ $Date: 2000/10/12 22:31:32 $
    */
   
   public class Action {
  @@ -123,6 +123,16 @@
        */
       public static final String ERROR_KEY =
         "org.apache.struts.action.ERROR";
  +
  +
  +    /**
  +     * The request attribute key under which Struts custom tags might store a
  +     * <code>Throwable</code> that caused them to report a JspException at
  +     * runtime.  This value can be used on an error page to provide more
  +     * detailed information about what really went wrong.
  +     */
  +    public static final String EXCEPTION_KEY =
  +        "org.apache.struts.action.EXCEPTION";
   
   
       /**
  
  
  

Mime
View raw message