首页中加入该语句
response.sendRedirect("index.action");
当前项目为struts2项目
<%
response.sendRedirect("index.action");//可实现转向到struts.xml中配置的 index Action中
// request.getRequestDispatcher("index.action").forward(request,response); 不可用
%>
版权声明:本文为wuwenlong527原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接和本声明。