我想在eclipseServlet是缺失的 - 所請求的資源()不可用
<%@ page language="java" contentType="text/html; charset=UTF-8"
pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
</head>
<body>
<form action="serv">
<input type="submit">
</form>
</body>
</html>
運行使用Tomcat這個代碼當我點擊提交按鈕,出現
HTTP Status 404 - /Ajax/serv
type Status report
message /Ajax/serv
description The requested resource (/Ajax/serv) is not available.
以下錯誤消息
我正在處理一個JSP項目時沒有任何問題,直到我刪除了JSP和Servers項目並創建了新項目。從那以後,它就不起作用了。
有什麼建議嗎?
檢查如何創建新的Web項目:HTTP://help.eclipse .org/indigo/index.jsp?topic =%2Forg.eclipse.wst.webtools.doc.user%2Ftopics%2Ftwcreprj.html – 2012-04-24 04:27:44
我遵循了相同的步驟。 – 2012-04-24 04:29:27
檢查/WEB-INF/web.xml並粘貼 – 2012-04-24 04:30:04