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=13482>.
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=13482

exception declaration in forward/include action.

           Summary: exception declaration in forward/include action.
           Product: Struts
           Version: Nightly Build
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Enhancement
          Priority: Other
         Component: Controller
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


Hello, 

This message was posted in strut-dev list but I think a bug report is more 
efficient ;)

In the Struts 1.1 Actions we can throw Exception in execute(...) method and 
manage it with
exceptions declaration in struts-config.xml. Great idea !

But if I want check user on every Action by throwing an exception I can't use 
forward/include action. 

Is it a good idea to add exception support in forward/include action ?

I think the solution is in the RequestProcessor class, the method processForward
(...) and processInclude(...) should throw an Exception (instead of 
ServletException/IOException). And in the process(...) method, simply manage 
these exception like the processActionPerform(...) method.

If the user would manage Exception in forward/include action, the way is to 
override RequestProcessor class by user chekcing in override processForward
(...) and processInclude(...).

Thx,
-emmanuel

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

Reply via email to