【发布时间】:2012-08-04 08:54:20
【问题描述】:
一开始我在adminPage.jsp:
<!DOCTYPE html>
<html>
<head><title>System Administrator Page</title>
<link rel="stylesheet"
href="./css/styles.css"
type="text/css"/>
</head>
<body>
<h1>Hello ${name.firstName} ${name.lastName} , You've logged in successfully!</h1>
<h1>
Please choose one of the following options
</h1>
<fieldset>
<legend>Add a new manager to the bank system</legend>
<form action="adminAddNewManager">
<a href="registration.jsp">Press here to continue</a>
</form>
</fieldset>
我想移动到 registration.jsp ,它位于 adminPage.jsp 的同一文件夹中。
但是当我尝试转移到adminPage.jsp 时:
我明白了:
HTTP Status 404 - /WebBank/registration.jsp
--------------------------------------------------------------------------------
type Status report
message /WebBank/registration.jsp
description The requested resource (/WebBank/registration.jsp) is not available.
--------------------------------------------------------------------------------
Apache Tomcat/7.0.28
这是为什么呢?
问候
【问题讨论】:
-
粘贴浏览器地址栏中显示的 URL,然后单击链接。单击链接后执行相同操作。并向我们展示 webapp 的文件树结构。
-
进入admin.jsp,浏览器中的url是什么?
-
它在您的项目中的什么位置?
-
把jsp页面的整个路径放上去,而不只是那个页面的名字。
标签: java html jsp web-applications servlets