<span style="position: absolute;">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td align="left"><select name="selectmenu"
style="position: absolute; top: 0px; width: 135px; height: 24px; left: 0px; clip: rect(0, 180, 110, 90)" onChange="reader.value=this.options[this.selectedIndex].value">
<%
packs.DAO dao = new packs.DAO();
out.print(dao);
java.util.Vector resultjsp = dao.getSomeReader();
for (int i = 0; i < resultjsp.size(); i++) {
java.util.Vector sub = (java.util.Vector) (resultjsp.get(i));
for (int j = 0; j < sub.size(); j++) {
String val = (String) (sub.get(j));
out.print("<option value='" + val + "'>" + val
+ "</option>");
}
}
%>
</select> <input name="reader" type="text" value=""
onMouseOver="this.select();this.focus();"
style="position: absolute; top: 0px; width: 110px; height: 18px; left: 0px;">
</td>
</tr>
</table>
</span>
该网页代码可以通过include指令直接包含在其他所需网页中,如:
<form action="getAllInterestServlet" method='get'>查询读者号:
<jsp:include page="input.jsp"></jsp:include>
<input type=submit value=' 确 认 ' style="position: absolute; top: 0px; width: 30 px; height: 20 px; left: 250px;">
</form>