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!

refresh jsp page that's calling a servlet

843842Sep 4 2009 — edited Sep 9 2009
I've been searching on google for more than an hour on how to do this, but I can't find it anywhere. Basically, I'm calling the servlet as a <form> action from a jsp page having the URL like http://localhost/ps/viewpic.jsp?cat=1&pid=5. The servlet updates a database. After it finishes updating, I would like to reload the page to reflect the changes. How on Earth do I do that, 'cause it's driving me mad? I tried using sendRedirect() with various strings, but to no avail. How can I retrieve the page's URL?
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Oct 7 2009
Added on Sep 4 2009
5 comments
718 views