Hello, I have a
JSP page page on which I am running some AJAX functions. ie. on page load, an AJAX function which queries the JSP page for the value of a
String called currentMessage starts running. This works very well and displays the current value of the String currentMessage as I have requested it to do.
The problem arises when I reload the JSP page using my browsers refresh button or reload. In the beginning of my JSP code, I set the value of currentMessage to "", which is basically an empty string. But even when I reload the page, thinking that everything has started anew, the value of currentMessage still remains the last value it was set to before the page reload. How can I make sure that the value of currentMessage is reset each time the page reloads. Thanks.