Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

SUbmit data to servlet without reloading the page

843841Jun 22 2004 — edited Jun 23 2004
Hi all.
I have a page that is built using JSP with a lot of data retrieved from a database.
The user can choose items from lists on the page and add them to some selection, using Add button.
Every time the Add button is clicked, the servlet should be called updating the selection stored
server-side.
Now here is my question: Is there any way to call the servlet in order to update the server-side database
without reloading the page, i.e. recalling the JSP and constructing the whole page again?
I only want to build the page once, since it involves retrieving a lot of data, but I want to call
the servlet every time selection is submitted.

Is this at all possible? Or maybe there is some other way of doing this, not JSP-Servlet approach?

Thank you very much for help.

Anna
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jul 21 2004
Added on Jun 22 2004
3 comments
317 views