You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@struts.apache.org by Apache Wiki <wi...@apache.org> on 2005/06/11 12:35:58 UTC

[Struts Wiki] Update of "ForwardingWithDifferentParameter" by KurtBattisti

Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Struts Wiki" for change notification.

The following page has been changed by KurtBattisti:
http://wiki.apache.org/struts/ForwardingWithDifferentParameter

------------------------------------------------------------------------------
  
              //Saving the post
              ActionForward af = new ActionForward();
-             af.setContextRelative(true);
+             //Following line is only necessary when using modules
+             af.setModule("moduleName");
-             af.setPath("[my application relative path]/viewTopic.do?dispatch=viewTopic&topicID=123");
+             af.setPath("/viewTopic.do?dispatch=viewTopic&topicID=123");
  
              return af;
      }

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