servlet help - redirecting from within a framed servlet

P

ppcguy

i've got a servlet running in a frame window.

in certain situations, i'd like to redirect the user to
a new page...complete new frame.

in html it would be done with the TARGET attribute.
<A HREF="/new-url" TARGET="_parent">New link</A>

is this possible in a servlet.

the HttpRespons sendRedirect() method does not for the
specification of a target.
 
A

Andrea Desole

ppcguy said:
i've got a servlet running in a frame window.

in certain situations, i'd like to redirect the user to
a new page...complete new frame.

in html it would be done with the TARGET attribute.
<A HREF="/new-url" TARGET="_parent">New link</A>

is this possible in a servlet.

no. HTTP is a simple request/response protocol: you ask for a file, you
get it. The client knows where to put it, not the server. A servlet is
no exception.
You have to redirect to a middle page that will have the task to remove
the frame.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,754
Messages
2,569,527
Members
44,999
Latest member
MakersCBDGummiesReview

Latest Threads

Top