hi sankar,
you can store the data to be displayed in a hashtable.
then dynamically read those data from hashtable in your jsp page.
when user clicks on  a button or a link add an item
to your hashtable.
then read all the elements from that hashtable
this way after every click an extra row will be appended to your table.
here is a small snippet that might be helpful to you.

Enumeration enum =getElements();// retreives all the elements from the
hashtable
while(enum.hasMoreElements()){
%>
<tr><td><%=yourdata%></td></tr>
<%  } //   end  of while loop  %>

hope it helps
cheers :)



----- Original Message -----
From: "M Sankar" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Saturday, December 15, 2001 12:27 PM
Subject: Dynamically add rows to a table


> Hi,
>
> I have a situation here. My JSP page contains one HTML table which has
> one row in the beginning. The end user should have the functionality of
> adding rows to it on requirement. The target is to dynamically add rows
> to a table during runtime. This should happen on click of a button. How
> to do this in  JSP? The click happens on the client side. How to
> integrate it with the JSP on the server side???
>
> Any replies would be really helpful.
> Thanks and Regards
> Sankar
>
> ===========================================================================
> 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://archives.java.sun.com/jsp-interest.html
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.jsp
>  http://www.jguru.com/faq/index.jsp
>  http://www.jspinsider.com
>

===========================================================================
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://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com

Reply via email to