0

Hello everyone...i am new to this community, and also a first time user of jsp...
I have to complete, and make some modifications in a particular project (made by someone else), which has been made in JSP.

I have to add a textbox, followed by a button (with the label Add New).
When i click on the above button, a new textbox and button will open (This is very similar to what we use in yahoomail/gmail to add more attachments). After adding as many text boxes as i want, and on pressing the submit button in the form, data in all the textboxes should be added to the database.
Can anyone plz guide me about how i should go about doing this??

PS: i'd be really greatful if someone can tell me how to accomplish the required task using jsp, and servlets only (and WITHOUT USING JSTL/custom tag library/beans, since the major part of the project has been developed using servlets. Beans/jstl/custom tags have not been used anywhere in the project)

2
Contributors
1
Reply
2
Views
9 Years
Discussion Span
Last Post by iamus
0

you can go many places here, if you want to use servlet, first of all you can for example create a session scoped object like an arraylist where you add data to it everytime and then render it upon response. You could do the same with a request scop object using the setParameter and getParamter

I do think you should use ajax however, it's much more effecient and would be faster since it's client side and you'd give the server some rest.

search for:
XMLHttpRequest

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.