---
title: "struts1.2中从一个action跳转到另外一个action"
author: "semicolon"
date: "2010-10-11T14:07:10Z"
tags: []
categories: ["企业架构"]
slug: "struts1-2-action-action"
draft: false
lastmod: "2010-10-11T14:07:10Z"
id: 781355
url: "https://codingbug.iteye.com/blog/781355"
---

转至：[http://www.cnblogs.com/mabaishui/archive/2010/09/15/1827052.html](http://www.cnblogs.com/mabaishui/archive/2010/09/15/1827052.html)

 

 

在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);