I'm working on an app where one frame calls a servlet that does an xsl:sort to update an html doc. I'm using 'response.sendRedirect' to bring me back to the frame that called the servlet, but then I need to refresh the frame that displays the html that was just updated. I've been using 'parent.framename.location = relativeURL' to accomplish this, but with limited success. It seems to work only on every second update. I know the transform is successful and the html is updating every time, but the display frame doesn't update. I also dont' think its a caching problem, as I'm using <META CONTENT="-1" HTTP-EQUIV="Expires"> <META CONTENT="no-cache" HTTP-EQUIV="Pragma"> <META CONTENT="no-cache" HTTP-EQUIV="Cache-Control"> <META CONTENT="no-store" HTTP-EQUIV="Cache-Control"> in the head of the html doc. So is there another way to do this? Thanks in advance
You know I'm still not sure why this isn't working because I've used window.location=... before for similar purposes. I can only imagine it may have been a synchronization issue where perhaps the updated file was not available in time for the call to window.location. But thats just a guess. Anyway, I ended up setting the target attribute of the form I'm submitting to indicate the frame which should ultimately hold the resulting html and everything works fine (every time). Probably should have thought of this sooner.