This week's book giveaway is in the Design forum.
We're giving away four copies of Building Microservices and have Sam Newman on-line!
See this thread for details.
The moose likes Servlets and the fly likes Redirect to another frame Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Building Microservices this week in the Design forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Redirect to another frame" Watch "Redirect to another frame" New topic

Redirect to another frame

Graham Spice

Joined: Nov 01, 2001
Posts: 5
Hi gang,
Does anyone know if it is possible to use the sendRedirect("...") method to specify a different frame in the browser.
Is it possible to redirect to a different frame???
manav kher
Ranch Hand

Joined: Nov 21, 2000
Posts: 98
well i am not sure if i know the answer to your questions (though I and my coleagues have often wondered)
but if you are calling the first servlet from a frameset to begin with, well then you can redirect the output to a specific frame...something like this
<form method="get" action="/servlet" target="target_frame">
does it make any sense?
Graham Spice

Joined: Nov 01, 2001
Posts: 5
Thank you so much,
I can't believe how dumb I can be sometimes. That solved my problem big time.
I agree. Here's the link:
subject: Redirect to another frame
It's not a secret anymore!