【发布时间】:2011-08-06 09:30:40
【问题描述】:
我是 Java 和 JSP 的新手。请帮我解决这个问题。
我在 WebContent/web/jsp 目录下有两个文件 Page1.jsp 和 Page2.jsp。当我单击 Page1.jsp 中的超链接(使用 href 标记)时,它应该导航到 Page2.jsp。
下面是用Page1.jsp编写的代码:
Navigate to Page2 <a href="../jsp/Page2.jsp">here</a>
我也使用了下面的路径:
Navigate to Page2 <a href="../web/jsp/Page2.jsp">here</a>
两次,我都收到错误"The requested resource (/Sample/web/jsp/Page2.jsp) is not available".
'Sample' 是我在 web.xml 中指定的项目名称。我正在使用 Tomcat 6.0 服务器。
请帮帮我。
【问题讨论】: