
<%@ page contentType="text/html;charset=GB2312" %>
<%@ page import="a3.DataBaseInquire" %> 
<HTML>
<BODY >
<Font size=4>
<FORM action="byKeyword.jsp" Method="post" >
 <P>成绩查询
 <P>输入学号:
  <Input type=text name="keyword">
  <Input type=submit name="g" value="按学号查询">

</Form>

<FORM action="byKeyword.jsp" Method="post" >
 <P>输入姓名:
  <Input type=text name="name">
  <Input type=submit name="g1" value="按姓名查询">
</Form>


<jsp:useBean id="database" class="a3.DataBaseInquire" scope="request" >
</jsp:useBean>
<jsp:setProperty  name= "database"  property="keyword" param="keyword" />
<jsp:setProperty  name= "database"  property="name" param="name" />
<P>查询到记录：<BR>
<% 
StringBuffer b=database.byKeywordInquire(); 

%>
<%=b%>

</Body>
</HTML>