首页中加入该语句 response.sendRedirect("index.action"); 当前项目为struts2项目<% response.sendRedirect("index.action");//可实现转向到struts.xml中配置的 index Action中 // request.getRequestDispatcher("index.action").forward(request,response); 不可用%>