File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
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!