search.jsp文件是
<%@ import="java.sql.*"%>
<table width="740" border="1" align="center" cellpadding="0" cellspacing="0" bordercolor="#DDDDDD" bgcolor="#EEEEEE" style="border-collapse: collapse">
<form name="engines" onSubmit="netsearch(engines)">
<tr><td valign="middle">
<label>Search</label>
<input type="checkbox" name="Baidu"><label>Baidu</label>
<input type="checkbox" name="Google"><label>Google</label>
<input type="checkbox" name="Yahoo"><label>Yahoo</label>
<input name="TEXT" size=30 maxlength=200 class="inputborder">
<input type="button" onClick="netsearch(engines)" value="Search">
<input type="reset" value="Clear">guixiaolan
</td></tr>
<tr>
<td>
<%
String sql="select * from friendlink";
ResultSet rs=data.executeQuery(sql);
while(rs.next()){out.print(rs.getObject(2));}
rs.close();
%>
</td>
</tr>
</form>
</table>
index.jsp文件是
<%@ page contentType="text/html; charset=gb2312" language="java" import="java.sql.*"%>
<html>
<head>
<title>======</title>
<link href="css/main.css" rel="stylesheet">
<script src="js/search.js"></script>
<script src="js/ad.js"></script>
<script src="js/check.js"></script>
<script src="js/time.js"></script>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
</head>
<body onload="startclock()">
<jsp:useBean id="data" scope="page" class="Data.database"/>
<%data.OpenConn("2008","","");%>
<%ResultSet rs=null;String sql="";%>
<jsp:include page="top.jsp" flush="true"/>
<jsp:include page="title.jsp" flush="true"/>
<br>
<jsp:include page="middle.jsp" flush="true"/>
<br>
<jsp:include page="search.jsp" flush="true"/>
<jsp:include page="bottom.jsp" flush="true"/>
<%data.closeConn();%>
</body>
</html>