reset password
Author Message
ialexan
Posts: 19
Posted 14:35 Jan 28, 2012 |

How do I prevent the output of my Servlet pages from being stored by the browser.

I am having this problem after  (response.sendRedirect( path) to the original page.

After redirecting, the broweser is keeping the original data and adding to it the new data    instead of clearing the old and showing the new data.

 

 

YangXuan
Posts: 23
Posted 15:13 Jan 28, 2012 |

You can clear cache in your browser. 

If clearing cache does not help, then you should probably recheck your code. The good way to check the code is using the debug tool in Eclipse. What you can do is set the break points before the return code. In this homework, you might want to check the objects stored in the servlet context container.