This week's book giveaway is in the Mac OS forum.
We're giving away four copies of a choice of "Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac" and have Joe Kissell on-line!
See this thread for details.
The moose likes Servlets and the fly likes redirect from servlet Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » Servlets
Bookmark "redirect from servlet" Watch "redirect from servlet" New topic
Author

redirect from servlet

Tom Hopkins
Greenhorn

Joined: Aug 10, 2001
Posts: 14
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? Can I redirect to a frame other that the one that called the servlet? If so, how?
Thanks in advance
 
GeeCON Prague 2014
 
subject: redirect from servlet