public ActionForward userSave(ActionMapping mapping, ActionForm form,
HttpServletRequest request, HttpServletResponse response) {
UserForm userForm = (UserForm) form;
return mapping.findForward("userSave");
}//传参数
public ActionForward userSave(ActionMapping mapping, ActionForm form,
HttpServletRequest request, HttpServletResponse response) {
UserForm userForm = (UserForm) form;
////////////////////////////////////////////////////////////////////////////////////////////////////////////
String path = mapping.findForward("delete").getPath();
//修改
String para="";
if(path.indexOf("?")!=0)
{
para="&pageId=1";
}
else
{
para="?pageId=1";
}
//此修改是随手加的,没测试,应该没问题
//TODO: 读取本Action所有的请求参数,将path重新构造,加上请求参数
ActionForward forward= new ActionForward(path+para);
forward.setRedirect(true);
//传参数后返回
return forward;
//return mapping.findForward("userSave");
}有问题?直接google! <script type="text/javascript"><!-- google_ad_client = "pub-0757178726455256"; google_ad_format = "js_sdo"; google_cts_mode ="rs"; google_num_cts = "2"; google_searchbox_width = 215; google_searchbox_height = 26; google_link_target = 2; google_logo_pos = "left"; google_rs_pos = "right"; google_ad_height = 35; google_ad_width = 760; //--> </script><script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_sdo.js"> </script>
<script type="text/javascript"><!-- google_ad_client = "pub-0757178726455256"; /* 728x90, 创建于 09-6-17 */ google_ad_slot = "1633515232"; google_ad_width = 728; google_ad_height = 90; // --></script><script src="http://pagead2.googlesyndication.com/pagead/show_ads.js" type="text/javascript"></script>