You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@struts.apache.org by ek...@apache.org on 2002/12/12 22:30:55 UTC

cvs commit: jakarta-struts/src/share/org/apache/struts/action ExceptionHandler.java

ekbush      2002/12/12 13:30:55

  Modified:    src/share/org/apache/struts/action ExceptionHandler.java
  Log:
  Removed unneeded path variable from execute and set the generated
  ActionForward to be context-relative if generated from the ExceptionConfig
  path property (since the ExceptionConfig javadoc explicitly says this
  should be a context-relative path)
  
  Revision  Changes    Path
  1.12      +3 -7      jakarta-struts/src/share/org/apache/struts/action/ExceptionHandler.java
  
  Index: ExceptionHandler.java
  ===================================================================
  RCS file: /home/cvs/jakarta-struts/src/share/org/apache/struts/action/ExceptionHandler.java,v
  retrieving revision 1.11
  retrieving revision 1.12
  diff -u -r1.11 -r1.12
  --- ExceptionHandler.java	8 Dec 2002 06:04:42 -0000	1.11
  +++ ExceptionHandler.java	12 Dec 2002 21:30:55 -0000	1.12
  @@ -97,18 +97,14 @@
           ActionError error = null;
           String property = null;
   
  -        String path;
  -
           // Build the forward from the exception mapping if it exists
           // or from the form input
           if (ae.getPath() != null) {
  -            path = ae.getPath();
  +            forward = new ActionForward(ae.getPath());
  +	    forward.setContextRelative(true);
           } else {
  -            path = mapping.getInput();
  +	    forward = new ActionForward(mapping.getInput());
           }
  -
  -        // Generate the forward
  -        forward = new ActionForward(path);
   
           // Figure out the error
           if (ex instanceof ModuleException) {
  
  
  

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>