display from HTML file is not getting refreshed
Posted on 2006-06-29
Here is the scenario....
I prepare a servlet whein the doGet() I make the presentation GUI. Comes out very nice.
I have a push button and at the click of the push button goes to doPost() where I UPDATE A .HTML FILE DYNAMICALLY.
doPost() calls toGet() to reload the new contents. Then onLoad() of the next round I am displaying the contents of the
html file (with updated values) on a messageDialog window.
The problem I have is that although the HTML file is physically getting updated (I can see this when I list the contents of the
file by hand) at the click of the button, onLoad() (in the second round) does not refersh the file in the container. seems like
that it simply shows the file that was loaded into the container in the first instance.
How to instruct to reload HTMLthe file into the container every next round?.
I tried pressing "refresh" button on the browser, but no good.