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

本文详细介绍了如何使用Action类的execute方法实现页面跳转,通过设置目标URL并使用forward方法将请求转发到新的页面,同时携带当前页面的参数。
564

被折叠的 条评论
为什么被折叠?



