错误提示:Expecting "jsp:param" standard action with "name" and "value" attributes
 
两次调用数据库都出现同样错误,其它页面都正常,只要调用数据库就出这个错误,本人刚学习jsp不久,大家帮忙看看
"GengXin.jsp": org.apache.jasper.JasperException: file:E:/网页设计/jsp主页面/Web1/GengXin.jsp(27,0) Expecting "jsp:param" standard action with "name" and "value" attributes"HeDui.jsp": org.apache.jasper.JasperException: file:E:/网页设计/jsp主页面/Web1/HeDui.jsp(23,0) Expecting "jsp:param" standard action with "name" and "value" attributes
看不太懂啊,网上看了几个类似回答,都不具体。第一个错误是登录查询数据库中用户名和密码;第二个是向数据库中存入数据,都有这样错误。好像是调用数据库时少了两个值“name”“value”,但也不提示是哪一条语句,我用的jdbc:odbc:Demo,在数据源设置的是不用用户名和密码的,那这个name和value指的是什么值。望高手给指点下!
下面是两个错误页面代码:<%@ page contentType="text/html; charset=GBK" %>
<%@ page import="java.sql.*" %>
<html>
<head>
<title>核对密码</title>
</head><body bgcolor="#ccffcc">
<jsp:useBean id="mm" scope="page" class="jsp主页面.Data1">
</jsp:useBean>
<%
String kch= request.getParameter("kch");
String mi=request.getParameter("mima");
String sql="select * from mmb where kch='"+kch+"'and mm='"+mi+"'";
ResultSet rs=mm.executeQuery(sql);//调用Data1类的executeQuery方法实现查询
try{
if(rs.next())
{rs.close();
session.setAttribute("kch",kch);//将课程号保存在session中供后续页面使用
%>
<jsp:forward page="LuRu.jsp">
</jsp:forward>
<%
}else{rs.close();
%>
<jsp:forward page="YanZheng.jsp">
</jsp:forward>
<%} }catch(SQLException e){e.getMessage();}%>
</body>
</html><%@ page contentType="text/html; charset=GBK" %>
<%@ page import="java.sql.*" %>
<html>
<head><title>成绩入库</title></head>
<body bgcolor="#ccffcc">
<jsp:useBean id="gengxin" scope="page" class="jsp主页面.Data2">
</jsp:useBean>
<%int i=0,cj0=0; 
String kch=(String)session.getAttribute("kch");
while(++i<11)
{String xh=(String)("sh"+i);
String cj=(String)("cj"+i);
xh=request.getParameter(xh);
if(xh!=null)
{cj=request.getParameter(cj);
cj0=0;
if(cj!=null)
{cj=cj.trim();
if(cj.length()!=0)cj0=Integer.parseInt(cj);
}
gengxin.Insert(xh,kch,cj0);
}
}
gengxin.CloseAll();
%>
<jsp:forward page="LuRu.jsp">
</jsp:forward>
</body>
</html>
谢谢……