File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Servlets and the fly likes Add an element with a .jsp file Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "Add an element with a .jsp file" Watch "Add an element with a .jsp file" New topic

Add an element with a .jsp file

Jeff Dube
Ranch Hand

Joined: Jun 14, 2001
Posts: 44
Hi all,
I am working with a html table that contains a form.
This form have a input tag --> <input type="text"...>
and 2 buttons ("add" and "submit".>

Here's what i need to do:
I want my "add" button to call a jsp(<%@ include... %> that insert a new text area (<input type="text"...> into a new row of the table (<tr> <td> <center> <input type="text"...>...</tr> ).
I am using this way because my page can have 1 or multiple text area and it would be too long to insert a fix number of area.
The problem is that i don't know how to call a jsp "function" or tag(?) with a button and i don't know how to make it appear at the right place inside the table. How can i manage these pages to be well adapted to my needs?
Hope my question is clear enough???
I agree. Here's the link:
subject: Add an element with a .jsp file
jQuery in Action, 3rd edition