Hi Maharshi,

try this code...
while displaying the html page.
for instance u are displaying Empcode, empname,etc., which u got from bean
resultset. As Empcode is unique. store in a string by name code.
instead of button use href link..
while(rs.next())
{
String code=rs.getString("Empcode");
...what ever stuff u want to display, insert code here

<a href='update.jsp?row=<%=code%>'>Update</a>
}

now when u click on update link..empcode parameter is passed to update.jsp
file that u pass to ur bean that will return the resultset. with that what
ever u want to do u can do..

regards,
Prasad Lolla



Peter Gubis <[EMAIL PROTECTED]> wrote:
try using generated link with som id of yours update button

ex:   <a href='update.jsp?row=xxx'>

don't work ?

manaz


Maharshi Mukherjee wrote:

> Hi All,
>         I got a problem while creating a jsp. My jsp is displaying a list
of
> employee details (say, emp.#, emp. name, etc.) in a form of table like
> structure where each row displays the details of one employee. This jsp
> actually calls a bean (say, Mybean.class) which returns a resultset to this
> jsp. Now, I also have a 'Update' button for each row, while clicking there
> it should throw another html/jsp where the details of the selected row
> should be present only. I am able to display the search result but when
user
> will click on the 'Update' button how can I know which row is
> clicked...basically I want to send the details of that row through some
> hidden variable. As a browser I'm using IE5.
>         Basic problem is my table structure is created through server side
> program (here, through jsp) where as I want to trap the 'onclick' event in
> the client side where I should be able to capture the data populated by
> server side jsp program. If there is any alternative approach to display a
> search screen and then to get data from the page for the updation purpose
> (depending upon the users choice), please let me know that also. Any
pointer
> is welcome.
>         Regards,
>         Maharshi.
>
> ===========================================================================
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
> For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
DIGEST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.html
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets


____________________________________________________________________
Get free email and a permanent address at http://www.netaddress.com/?N=1

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

Reply via email to