Hi

In servlet 1 you should put the value of the radio button as the id of the
record .
you can do that easily as you will be looping through the recordset.
int id=rs.getInt("Id");
so it will be like <input type=radio value=\""+id+"\"
onclick=\"javascript:openservlet2('"+id+"')\">

the javascript will just open the servlet2 in a new window and you an pass
the id of the record and do the necessary in servlet2 based upon the record
id.

I hope this is clear to you

All the Best


Regards
Purav

----- Original Message -----
From: "Baskaran S" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, August 11, 2000 12:38 PM
Subject: How to get selected rows?


> Hello
>
>     i hv a html page consists of a table, each row consists of a record
it's
> generated by a servlet1, each row has two radio
> buttons when i click "Yes" it should go to a servlet2, if not leave
that,How
> can i get  the selected rows from  servlet2
>
> Pls help
> siva bass
>
>
___________________________________________________________________________
> To unsubscribe, send email to [EMAIL PROTECTED] and include in the
body
> of the message "signoff SERVLET-INTEREST".
>
> Archives: http://archives.java.sun.com/archives/servlet-interest.html
> Resources: http://java.sun.com/products/servlet/external-resources.html
> LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to