关于web.xml中<welcome-file-list>
2012-06-05 13:24
399 查看
web.xml中的<welcome-file-list>在设置欢迎界面时每次用show.do时会爆出404错误。在网上查找了好半天找到了解决方法。
<welcome-file-list>
<welcome-file>show.do</welcome-file>
</welcome-file-list>
这样子会报错。但是只要在WebRoot目录下建立一个show.do的文件即可。文件里什么都不用写。这样完全就会访问到你的Action中(当然这要你的struts-config.xml配置好了)。
原文:http://4292365.blog.51cto.com/4282365/766989
<welcome-file-list>
<welcome-file>show.do</welcome-file>
</welcome-file-list>
这样子会报错。但是只要在WebRoot目录下建立一个show.do的文件即可。文件里什么都不用写。这样完全就会访问到你的Action中(当然这要你的struts-config.xml配置好了)。
原文:http://4292365.blog.51cto.com/4282365/766989
相关文章推荐
- 关于web.xml中的<welcome-file-list>中的默认首页文件
- 关于web.xml中的<welcome-file-list>中的默认首页文件
- <welcome-file-list>404
- <welcome-file-list>标签作用,怎样使用
- 关于web.xml中的<welcome-file-list>
- 关于web.xml中的<welcome-file-list>中的默认首页文件
- 关于web.xml中的<welcome-file-list>中的默认首页文件
- 关于web.xml中的welcome-file-list(欢迎页)
- web项目直接在浏览器上访问不需要带.jsp,直接ip地址加项目名 在web.xml里配置,<welcome-file-list><welcome-file> /view/login.jsp <
- 关于web.xml中的<welcome-file-list>中的默认首页资料
- web.xml中<welcome-file-list>配置
- 关于web.xml中<web-app>报错解决方案
- 关于web.xml中的welcome-file-list(欢迎页)
- Spring启动<二>——XmlWebApplicationContext
- java web.xml welcome-file-list的默认值
- 关于List<String>的使用日记
- web.xml里面的welcome-file-list是什么意思
- web.xml之<context-param>与<init-param>的区别与作用
- Struts2框架web.xml的<filter-class>,FilterDispatcher和StrutsPrepareAndExecuteFilter
- web.xml不识别<taglib>解决办法