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]

[2385 byte] By [roger5089a] at [2007-11-27 5:54:21]
# 1
hiu hav to write a script function and submit the form in the script function not in form tagbefore submiting the form , set the value to a hidden variable and retrieve it in next pageregards-venkat
noveleraa at 2007-7-12 15:48:47 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...