DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=13839>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=13839

Exceptionhandler without "path" parameter

           Summary: Exceptionhandler without "path" parameter
           Product: Struts
           Version: 1.1 Beta 2
          Platform: PC
        OS/Version: Windows NT/2K
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Controller
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


My struts-config.xml:
  <controller nocache="true" processorClass="MyRequestProcessor">
    <set-property property="inputForward" value="true"/>
  </controller>
  <action
    path="/login"
    type="MyDispathAction"
    name="loginUserForm"
    scope="request"
    input="login"
    parameter="method"/>
  <global-forwards>
    <forward
      name="login"
      path="/WEB-INF/path-to-jsp/myinput.jsp"/>
  </global-forwards>
  <exception    key="exception.login.nouser" 
    type="MyException" >
   </exception>

In my exception declaration I do NOT put a path, so the exception handler
should use the input-parameter from the action, but if I set inputForward to 
true,
as in the above example, it does NOT work. The exception handler does NOT find
the jsp page. The exceptionhandler will directly load "login" without mapping 
this to
a local or global forward.

If I make following changese all works correct:
...
    <set-property property="inputForward" value="false"/>
...
    input="/WEB-INF/path-to-jsp/myinput.jsp"
...

--
To unsubscribe, e-mail:   <mailto:struts-dev-unsubscribe@;jakarta.apache.org>
For additional commands, e-mail: <mailto:struts-dev-help@;jakarta.apache.org>

Reply via email to