Robin John wrote:hi all,
Want to redirect to another URL and having a single parameter using POST. how do i go about it....
'm using struts2 framework.
my URL is "http://server:port/apps/token=dufiidlcoodllsdkfficiidn"
also it would be really helpful if anybody gives me the action mapping in struts.xml, after i do the logic in an action class, how to redirect after POST.
Thanks in advance.
hi
try doing a find forward on the request
like request.findForwrd("ur defined path");
you can rediect the request to a different
jsp.
and action mapping you can do in the following way
<!-- ========== Action Mapping Definitions ======== -->
<action-mappings>
<action
path="/login"
type="test.struts.LoginAction" >
<forward name="valid" path="/jsp/MainMenu.jsp" />
<forward name="invalid" path="/jsp/LoginView.jsp" />
</action>
</action-mappings>
you can go to the
http://struts.apache.org/ following site ... it is very userfriedly and you will get lot of examples.