困惑!如何将一个页面中查询数据库的结果在另一个页面中以表格形式输出?
a.jsp:
<%@ page contentType= "text/html; charset=shift_jis " language= "java "%>
<html>
<head>
<title> Untitled Document </title>
<style type= "text/css ">
<!--
@import url( "Admin_Css.css ");
-->
</style>
</head>
<body>
<form action= "b.jsp " method= "post ">
<select name= "select " class= "select5 "> </select>
<input type= "text " name= "name ">
<input type= "button " value= "query ">
</form>
<table width= "200 " border= "1 ">
<tr class= "TableOne " align= "center ">
<td> name </td>
<td> password </td>
</tr>
</table>
</body>
</html>
在b.jsp中将根据select和name的值进行查询,然后将查询结果以表格的形式输出在a.jsp的表格的下方。如何实现?谢谢
分不够再加!~
------解决方案--------------------用iframe啊
弄一个parentFrame a.jsp
a.jsp中加一个iframe为b.jsp
------解决方案--------------------写个JAVABEAN...................
------解决方案--------------------提交到a.jsp不就行了……