Refresh from servlet ? Could you pleeeeeeeease help urgent ?
843840Dec 3 2007 — edited Dec 3 2007Hello
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