get current paramater values into other jsp page
Dear all
i had use resultset to get data from while loop , and then i can get current resultset into my html tag. the question of my problem is that .
when i click on some resultset which show it in my tag and then when i use form to submit a data into other page i use request.paramater , it cannot make current result to me. it alway post the valuse my firest.
so i hope someone who can have this idea to get current data in my script
[code]
<form id="form" name="form" method="post" action="deletelist.jsp">
<%
Connection conn = null;
Statement stmt = null;
ResultSet rs =null;
try{
conn = DriverManager.getConnection("proxool.myDB");
if (conn != null) {
}
stmt = conn.createStatement(ResultSet.TYPE_SCROLL_SENSITIVE,ResultSet.CONCUR_UPDATABLE);
rs = stmt.executeQuery("select username, usetype , FIRSTNAME , MODIFYNAME , JOBTYPE from USERACOUNT");
while(rs.next()){
<td align="center" style="padding-left: 6px; padding-right: 6px; padding-top: 5px; padding-bottom: 3px"><%out.println(rs.getString("FIRSTNAME"));%></td>
<td align="center" style="padding-left: 6px; padding-right: 6px; padding-top: 5px; padding-bottom: 3px"><%out.println(rs.getString("MODIFYNAME"));%></td>
<td align="center" style="padding-left: 6px; padding-right: 6px; padding-top: 5px; padding-bottom: 3px"><a href="uview.jsp"><img src="../images/blk/edit-small.gif" alt="modify" width="30" height="20" border="0" /></a></td>
<td align="center" style="padding-left: 6px; padding-right: 6px; padding-top: 5px; padding-bottom: 3px">
<a href="javascript:Onclick_AddMember()">here..................................................
<input type="hidden" name="delete" value=<%
out.println(rs.getString("FIRSTNAME"));
System.out.println(rs.getString("FIRSTNAME"));
%> <%
}//end while
rs.close();
stmt.close();
conn.close();
}catch(SQLException e){
out.println(e.toString());
}finally{
try{
if(conn !=null){
conn.close();
}
}catch(SQLException e){
out.println(e.toString());
}//end finally
}//end try/catch
%>
</form>
[/clode]

