Client side scripting may not a suitable solution here as we do not know "how many" text boxes could be added by the user and for this scripting because these text boxes
must pre-exist on the HTML.
One of the ways could well be to render this information to the JSP through a query string (MyJsp?howManyMore=4). If the query string value is null we show the original page (with requsite 5 text boxes). As "Add' is clicked we call the same JSP and give it the information as to how many text boxes are to be appended.
I do not know the application of this JSP but a good solution may be - providing a drop-down list of "how-many-more-text-boxes" which the user could select and can add straightaway by clicking on "add". We can always get this information using request.getParameter(..). The resulting page will create the text boxes inside a loop with 5+number_of_text_boxes iterations.
Hope this helps
[ February 17, 2003: Message edited by: Debashish Chakrabarty ]
Debashish
--------------
SCJP2, SCWCD 1.4, PMP, ITIL Foundation, Cloud Foundry Certified Developer, AWS SA Associate