日期:2014-05-18  浏览次数:20596 次

为什么我刚还可以运行的,现在就出现这种问题了呢。
<%@   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()
------解决方案--------------------
区分大小写!