在web.xml中配置控制页面跳转的问题
当部署一个web项目的过程中,如果在<welcome-file-list>中配置如下的代码
<welcome-file-list>
<welcome-file>index.jsp</welcome-file>
</welcome-file-list>
这样,访问网址http://localhost:8080/test时可以跳转到index.jsp页面
如果我创建一个Action,在struts.xml中配置一个访问wel.do访问路径,跳转到Action类中的excute方法中
,执行这里面的return mapping.findForward("index");然后修改<welcome-file>节点内容为wel.do则再次访问的
时候就会报404错误