You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@struts.apache.org by bu...@apache.org on 2003/07/29 18:45:18 UTC

DO NOT REPLY [Bug 21949] - Multiple Modules : Action Chaining with ForwardAction gives 404 error

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

Multiple Modules : Action Chaining with ForwardAction gives 404 error

sraeburn@apache.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |INVALID



------- Additional Comments From sraeburn@apache.org  2003-07-29 16:45 -------
I'm assuming that your add.jsp and edit.jsp files are in the /admin directory.

The problem is with your configuration. ForwardAction requires a CONTEXT
relative path which, in this case would be: 

 <action path="/showEdit" 
         type="org.apache.struts.actions.ForwardAction"
         parameter="/admin/edit.jsp">
 </action>

(Note also, you had your parameter in a separate tag, but it should be an
attribute of the action tag. Not sure if that's what you actually had in your
source or it's just a typo in the bug report, but it wouldn't help!)

The reason it worked when you used your own custom action is that by default
ActionFoward paths are MODULE relative, so your configuration entry "/edit.jsp"
would be translated by the RequestProcessor to a context relative path of
"/admin/edit.jsp"

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