jsp forward求助
<%@ page contentType= "text/html; charset=GBK " %>
<html>
<head>
<title>
for
</title>
</head>
<body bgcolor= "#ffffff ">
<form action= " " method= "post " name= "form ">
姓名: <input type= "text " name= "names "/>
密码: <input type= "text " name= "password "/>
<input type= "submit " name= "sumbit " value= " 密 码 />
<%
String names=request.getParameter( "names ");
String password=request.getparameter( "password ");
if(password.equals( "good ")){
%>
<jsp:forward page= "f.jsp ">
<jsp:param name= "g " value= " <%=names%> "/>
<jsp:param name= "mess " value= "you are sucess "/>
</jsp:forward>
<%
}else{
%>
<jsp:forward page= "f.jsp ">
<jsp:param name= "g " value= " <%=names%> "/>
<jsp:param name= "mess " value= "in ">
</jsp:forward>
<%
}
%>
</form>
</body>
</html>
"for.jsp ":
org.apache.jasper.JasperException: file:E:/jb知识点/sunyun/untitled1/WebModule1/for.jsp(27,38) The <jsp:param tag can only have jsp:attribute in its body.
大家帮忙看一下这是什么错误啊
------解决方案--------------------<jsp:param tag can only have jsp:attribute in its body.
应该是这里
<jsp:param name= "mess " value= "in ">
改成
<jsp:param name= "mess " value= "in "/>
------解决方案--------------------传递参数
------解决方案--------------------;jsp:param tag can only have jsp:attribute in its body.
------解决方案--------------------什么页面???看不懂中...
------解决方案--------------------写的不错..支持下.
------解决方案--------------------关注!