JSP + IE problem...file stored at local machine's cache.
843836Mar 17 2005 — edited Mar 17 2005Hi all,
I have designed an application using IFrame in a JSP page.
Basically, the application calls an HTML file from the server and shows it in the IFrame using the IFrame's src property.
The user can edit this file within the IFrame and then save it again with the updated contents. The original HTML file on the server is overwritten with new contents. That's all working perrrrrrrrrrfect.
However, a problem struck me here. If the user saves the edited contents and then wishes to edit the file once again, the contents of the oldest version of that file are displayed and not the currently saved one ... !!
I checked the client's IE cache (Temporary Internet Files folder) and found that the problem arises because when rendering the file in the IFrame for the first time, a copy of that HTML file gets stored at the client's Temporary Internet Files folder. Then onwards, everytime, the application calls the file from the client's Temporary Internet Files folder and not from the server.
Can any1 explain why this is so ?
Also please give me a solution to disallow this action at the client end through my JSP program so that everytime only the newly saved file is called from the server.
Please help...it's urgent.
Thanx abunch.
Sherbir