
在myeclipse中运行jsp程序后显示404错误怎么解决 新手 求解呀 在线等
HTTPStatus404-/test/index.jsptypeStatusreportmessage/test/index.jspdescriptionTherequ...
HTTP Status 404 - /test/index.jsptype Status report
message /test/index.jsp
description The requested resource (/test/index.jsp) is not available. 展开
message /test/index.jsp
description The requested resource (/test/index.jsp) is not available. 展开
5个回答
展开全部
404是路径错误,你这是直接跳到jsp的,不用在web.xml里调,那里是调servlet路径的,你的跳转触发中的路径改一下,如果你项目名是test,要跳到里面的index. jsp,href或者action后就写“./index.jsp”前面要加点,不用加项目名称;如果使用了servlet的话,跳转前面要加../index.jsp两个点,因为servlet默认路径多了一层/servlet/....
展开全部
你的tomcat装在C盘的吧,那可能是webapp读写权限问题,myeclipse部署项目部署不进去,你看你的tomcat下的webapp在你部署后应该没项目文件,修改下文件夹权限
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
2012-09-15
展开全部
找不到 /test/index.jsp
看下 名称写对没有 路径配置对没有
看下 名称写对没有 路径配置对没有
追问
在我的tomcat文件目录里没有我所创建的文件 好像路径有点问题 可是不知道怎么改
追答
server.xml配置没有 怎么配置的
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
展开全部
404错误是找不到文件
不能用/test/index.jsp
改成test/index.jsp这样就好了
前面加/就是绝对路径
不能用/test/index.jsp
改成test/index.jsp这样就好了
前面加/就是绝对路径
本回答被提问者和网友采纳
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
展开全部
404是找不到文件。。。。 你路径有问题。。
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询