struts1.2中从一个action跳转到另外一个action的方法

来源:互联网 发布:数据审核制度 编辑:程序博客网 时间:2024/04/29 19:29

在action的方法的最后,一般情况下都使用return mapping.findForward("xxxxx");

如果想跳转到另外一个action的某个页面,可以这样:

ActionForward actionForward = new ActionForward();
actionForward.setPath("/customer/creditApprManage.do?method=searchCreditLevel&levelName=");
return actionForward;

 

注:如果需要重定向,只需要给actionForward加一个redirect属性,使用actionForward.setRedirect(true);

原创粉丝点击