我在webapps/root/目录下建了一个index.html,当我再启动tomcat时,欢迎主页就是index.html而不是默认的index.jsp了,为什么? 当然webapps/root/是tomcat的默认根发布目录,它的主页就是webapps/root/index.html这个页面,现在你的页面替换了它,当然就是你的咯 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 你看下tomcat的conf/web.xml中关于welcome-file-list的定义就知道了<welcome-file-list> <welcome-file>index.html</welcome-file> <welcome-file>index.htm</welcome-file> <welcome-file>index.jsp</welcome-file></welcome-file-list> <welcome-file-list> <welcome-file>index.html</welcome-file> <welcome-file>index.htm</welcome-file> <welcome-file>index.jsp</welcome-file></welcome-file-list>可以改优先级 <welcome-file-list> <welcome-file>index.html</welcome-file> <welcome-file>index.htm</welcome-file> <welcome-file>index.jsp</welcome-file></welcome-file-list>在这里改就行了!!可以删掉你不要的! conf/web.xml和我自己建的web应用下的web.xml有什么区别 conf/web.xml和我自己建的web应用下的web.xml有什么区别 简单的说,你的web.xml中的配置会覆盖掉conf/web.xml的配置,如果你的web.xml中缺少某些配置则使用conf/web.xml中的配置 <welcome-file-list> <welcome-file>index.html</welcome-file> <welcome-file>index.htm</welcome-file> <welcome-file>index.jsp</welcome-file></welcome-file-list>这里有个优先级的问题 S2SH整合时遇到一个Action中取值的问题,疑惑中100分求详细解释。 急救!测试自己写的代码时出现下列报错 求weblogic 8.1 struts1.x 怎么结合jquery的表单验证插件啊? 在JSP中怎么写把表单的中用户名密码提交到数据库并与数据库作对比 ant 遇到 javadoc失败 ant的错误。。。 为什么这个简单的AOP不能再spring2.0.5下运行,在1.2.9下正常 struts中下拉列表的三级联动问题!急!!! <ejb-link>标记到底有什么作用? Struts页面显示问题! 关于EQL问题
<welcome-file-list>
<welcome-file>index.html</welcome-file>
<welcome-file>index.htm</welcome-file>
<welcome-file>index.jsp</welcome-file>
</welcome-file-list>
<welcome-file>index.html</welcome-file>
<welcome-file>index.htm</welcome-file>
<welcome-file>index.jsp</welcome-file>
</welcome-file-list>
可以改优先级
<welcome-file>index.html</welcome-file>
<welcome-file>index.htm</welcome-file>
<welcome-file>index.jsp</welcome-file>
</welcome-file-list>
在这里改就行了!!可以删掉你不要的!
<welcome-file>index.html</welcome-file>
<welcome-file>index.htm</welcome-file>
<welcome-file>index.jsp</welcome-file>
</welcome-file-list>
这里有个优先级的问题