Hey What i have understood is that U R displaying a list of data in the
rows, so u can attach a cheak box in each row & tick only those row that
needs to be updated . Now to each cheak box value attach some sort of PK
identification, or numbering notation.
like
ex
while(rs.next())
{
//this is assigning the primary key values to the cheak boxes
out.println("<tr>");
out.println("<td bgcolor=\"#FF9999\">");
out.println("<input type=checkbox name=checkbox
value="+rs.getString(PKey)+" >");
out.println("</td>");
}
So when U post the form to another JSP , it will retrive all PK values of
the ckeaked cheakbox.
And U can do further modification accordingly to u'r need.
Hope this helps
Regards
Prasanjeet
----- Original Message -----
From: "Maharshi Mukherjee" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, December 11, 2000 4:33 PM
Subject: JSP help required.
> 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