读书人

为什么小弟我刚还可以运行的现在就出

发布时间: 2011-12-28 22:45:21 作者: rapoo

为什么我刚还可以运行的,现在就出现这种问题了呢。
<%@ page contentType= "text/html; charset=GBK " %>
<html>
<head>
<title>
1
1。JSP

</title>
</head>
<body bgcolor= "#ffffff ">
<%request.setCharacterEncoding( "gbk "); %>
<form action= " " method= "post " name= "form ">
<jsp:include flush= "true " page= " <%@ page contentType= "text/html; charset=GBK " %>
<html>
<head>
<title>
1
</title>
</head>
<body bgcolor= "#ffffff ">
<%request.setCharacterEncoding( "gbk "); %>
<form action= " " method= "post " name= "form ">
<jsp:include flush= "true " page= "jspinc.jsp ">
<jsp:param name= "t " value= "孙云 "/>
</jsp:include>

<br>
<input type= "text " name= "test "/>
<input type= "submit " name= "submit " value= "ceshi "/>
</form>
</body>
<jsp:param name= "t " value= "孙云 "/>
</jsp:include>

<br>
<input type= "text " name= "test "/>
<input type= "submit " name= "submit " value= "ceshi "/>
</form>
</body>

jspinc.jsp
<%@ page contentType= "text/html; charset=GBK " language= "java " import= "java.sql.* " %>
<html>
<head>
<title>
jspinc
</title>
</head>
<body bgcolor= "#ffffff ">

<%=request.getParameter( "t ")%>
</body>
</html>


"f.jsp ": cannot find symbol; symbol : method getparameter(java.lang.String), location: interface javax.servlet.http.HttpServletRequest
"for.jsp ": cannot find symbol; symbol : method getparameter(java.lang.String), location: interface javax.servlet.http.HttpServletRequest



[解决办法]
问题出在f.jsp for.jsp两个文件,注意方法的大小写
[解决办法]
for.jsp ": 里面的getparement()-> getParement()
[解决办法]
区分大小写!

读书人网 >Java Web开发

热点推荐