contextPath无法解析为请求的成员

时间:2013-12-06 21:09:30

标签: jsp weblogic http-status-code-404 contextpath

我是JSP的新手,我尝试了this简单的教程但是在eclipse中,在index.jsp中我收到警告“contextPath无法作为请求的成员解析”当我部署并尝试提交表格我得到错误404-找不到。

我使用Weblogic 12c和Eclipse Kepler

的index.jsp:

<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
pageEncoding="ISO-8859-1"%>
<!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=ISO-8859-1">
<title>Insert title here</title>
</head>
<body>
    <form action="${pageContext.request.contextPath }/sayHello">
        <input type="text" name="name" /><input type="submit" value="Press me!" />
    </form>
</body>
</html>

0 个答案:

没有答案