最近编了一个index.jsp小程序,工具用的是eclipse+tomcat+jdk+mysql,程序在编译环境下运行成功,想通过http//localhost:8080/来访问,结果老是出来tomcat的默认主页(即有只小猫的图像的那个),没有进入我编辑的index页面。为什么?该如何解决?
解决方案 »
- eclipse怎么配置?
- ExtJs ComboBoxTree 初始化值 问题
- InstallShield 2008 终止声明 (EOL)对最终客户意味着什么 ?
- struts2和struts 比较 各位兄弟们帮下忙
- 请问 jsp <%%>中如何取得el的值
- openssl 在win2000中怎幺安装
- 页面间中文字体的问题。
- error.jsp中出现错误:malformed expression
- 如何用javabean封装数据库查询?
- 一个简单的问题,class.forname()内的参数是什么意义,请高手指教,急
- Tomcat安装数字证书,客户端如何手动安装?
- 怎样用servlet抓post、get请求包的内容并输出?
http://localhost:8080/demo/index.jsp
http://localhost:8080/文件夹名
或者
http://localhost:8080/web工程名/
楼上正解,还有一种就是你要把完整的文件名也写出来,比如你放在webapp/sss下,则写http://localhost:8080/sss/你的网页的名字,如果你没有配置web.xml的话
<welcome-file-list>
<welcome-file>index.jsp</welcome-file>
</welcome-file-list>
设置index.xml