星游记人物介绍图片:有关tomcat运行jsp

来源:百度文库 编辑:高校问答 时间:2024/04/25 06:07:11
我在地址栏里输入http://localhost:8080/test/index.jsp,却不能正确显示页面,说是The requested resource (/test/index.jsp) is not available.,可是我在server.xml中已经设置过路径了,请问这是怎么回事呢?

用tomcat manager deploy 你的test文件夹
test 文件夹目录如下:
test----
|-你的index.jsp文件
|-WEB-INF---
|-web.xml
先把test文件夹放到webapps里,然后在
用manager deploy
WAR or Directory URL: /test
XML Configuration file URL: /test/WEB-INF
就可以了