一个简单的问题,请大虾指点。
已经搭建好了TOMCAT服务器,webapps目录下的已存在应用程序可以正常观看,我新建了一个目录myapp
,在它下面写了一个index.jsp,内容如下:
<html>
<head>
<title>first jsp</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
</head>
<body>
<%= new java.util.Date() %>
</body>
</html>
本地通过http://localhost:8080/myapp/index.jsp
访问时出现下面错误,
Apache Tomcat/4.0.3 - HTTP Status 404 - /myapp/index.jsp
--------------------------------------------------------------------------------
type Status report
message /myapp/index.jsp
description The requested resource (/myapp/index.jsp) is not available.
--------------------------------------------------------------------------------
好像是说找不到文件,请问怎样才能让tomcat找到index.jsp
在线等,谢谢。