新装的Tomcat6.0首页(http://localhost:8080),能够正常打开。
我又从网上找一段代码(test.jsp)
<html>
<body>
<center>Now time is: <%=new java.util.Date()%></center>
</body>
</html>
http://localhost:8080/myapp/index.jsp
HTTP Status 404 - /index.jsp
--------------------------------------------------------------------------------
type Status report
message /index.jsp
description The requested resource (/index.jsp) is not available.
--------------------------------------------------------------------------------
Apache Tomcat/6.0.2
出现上面的错误,很让我上火,找了好长时间也没有解决办法,我下的是TOMCAT BETA版的,是版本问题吗?
请高手们帮忙解决一下。没有找到路径。路径问题吧,大小写要分清楚扔到tomcat目录下的webapp/myapp/test.jsp
然后url访问
http://localhost:8080/myapp/test.jsp
就OK了
没index.jsp
这个页面确认这个页面是webapps目录下myapp/index.jsp
你的不是test.jsp么?