Re: servlet help - redirecting from within a framed servlet
- From: Andrea Desole <news@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Mon, 08 Aug 2005 17:03:52 +0200
ppcguy wrote:
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.
.
- References:
- Prev by Date: Re: Class::DBI like module for Java ? anyone ?
- Next by Date: JCA and LDAP
- Previous by thread: servlet help - redirecting from within a framed servlet
- Next by thread: Instance variable in an interface
- Index(es):
Relevant Pages
|