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 from servlet ? Could you pleeeeeeeease help urgent ?

843840Dec 3 2007 — edited Dec 3 2007
Hello

I have few JSP that use some links that invokes the same servlet. No forms are involved and data is just transfered through querystrings. There are various categories displayed on each page (news, fashion, etc) and they are from session variables. User can select remove beside each category to remove that category.

For example myPageA.jsp has a few links (read from session vars) like news (remove) , fashion (remove) , education (remove) . Now if user clicks remove beside fashion, a servlet is called. This servlet will take the parameter in query string (which is name of session var) and remove those session vars and at the end uses dispatcher.forward to forward the page to the caller page.

The calls are correct and the session vars are removed correctly, but the problem is that the page is not refreshed and user still sees fashion with remove link beside it.

Could you please help me how to force refresh a page when I use dispatcher ?

Thanks
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Dec 31 2007
Added on Dec 3 2007
4 comments
365 views