我的tomcat装在D:/下面,而我有一个项目是在d:/weboo/下面
我的web.xml文件里是这样的
<welcome-file-list>
<welcome-file>index.jsp</welcome-file>
<welcome-file>index.html</welcome-file>
<welcome-file>index.htm</welcome-file>
</welcome-file-list>
我的server.xml文件是这样设置的
<Context path="/nk" reloadable="true" docBase="D:\weboo\Ande" workDir="D:\weboo\Ande" />为什么我访问http://localhost:8301/nk/index.jsp的时候是tomcat的测试页面呢,而不是我项目的首页。
请问各位大哥,怎么解决啊!
我的web.xml文件里是这样的
<welcome-file-list>
<welcome-file>index.jsp</welcome-file>
<welcome-file>index.html</welcome-file>
<welcome-file>index.htm</welcome-file>
</welcome-file-list>
我的server.xml文件是这样设置的
<Context path="/nk" reloadable="true" docBase="D:\weboo\Ande" workDir="D:\weboo\Ande" />为什么我访问http://localhost:8301/nk/index.jsp的时候是tomcat的测试页面呢,而不是我项目的首页。
请问各位大哥,怎么解决啊!
解决方案 »
- 请高手们出来指点一下。
- JSP网站显示多国语言的技术
- 求一个功能的代码
- 谁有 jsp 上传图片 的代码????????
- Java反射问题
- 怎么判断一个字符串都是ascii字符
- Jsp运行org.apache.jasper.JasperException: Unable to compile class for JSP:问题
- JDBC问题(sql server).这几个文件在哪找呢??mssqlserver.jar;msutil.jar;msbase.jar;
- 100分求解!!!急!!!大家帮帮忙!!!
- bat脚本打包web项目问题
- 小菜鸟的简单问题!JSP高手进
- 关于jsp连接access数据库不成功问题,求高手看看。
为什么这里会多一级Ande?
直接访问http://localhost:8301/nk,
会自动去web.xml中寻找welcome画面,
index.jsp找不到,就找第二个index.html,第二个找不到,就找第三个。
不过,首先你要确信,index.jsp是否在D:\weboo\Ande目录下。