从一个struts action类直接跳到另一个action中

来源:互联网 发布:js数组删除指定的元素 编辑:程序博客网 时间:2024/05/16 09:20

 

public ActionForward execute(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response)throws Exception {

 

String bUrl = "kcxxAction.do?method=toFindKcxxList";   //地址
 request.getRequestDispatcher(bUrl).forward(request,response); //跳转,带着本页面的参数跳转
 return null;

}

 

Action 一定要 throws Exception

原创粉丝点击