action中實(shí)現(xiàn)動(dòng)態(tài)跳轉(zhuǎn)得一個(gè)方法
public class RegmobileAction extends Action {
public ActionForward execute(
ActionMapping mapping,
ActionForm form,
HttpServletRequest request,
HttpServletResponse response)
throws Exception
{
String url;
url = " +"&CPKeys:=626A737977&Itemid=124444"
+"&FeeNumber="+request.getParameter("phone")
+"&Feetype=2&CTtag="+request.getParameter("CTtag")
+"&backUrl=http://mms.0000.com.cn/mov/index.jsp"
+"&deliverurl=http://mms.0000.com.cn/mov/deliver.do";
ActionForward gotourl = new ActionForward(url);//url可以根據(jù)不同得條件指定不同得地址和不同得參數(shù)
gotourl.setPath(url);
gotourl.setRedirect(true);
return gotourl;
}
public class RegmobileAction extends Action {
public ActionForward execute(
ActionMapping mapping,
ActionForm form,
HttpServletRequest request,
HttpServletResponse response)
throws Exception
{
String url;
url = " +"&CPKeys:=626A737977&Itemid=124444"
+"&FeeNumber="+request.getParameter("phone")
+"&Feetype=2&CTtag="+request.getParameter("CTtag")
+"&backUrl=http://mms.0000.com.cn/mov/index.jsp"
+"&deliverurl=http://mms.0000.com.cn/mov/deliver.do";
ActionForward gotourl = new ActionForward(url);//url可以根據(jù)不同得條件指定不同得地址和不同得參數(shù)
gotourl.setPath(url);
gotourl.setRedirect(true);
return gotourl;
}