Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Java > servlet help - redirecting from within a framed servlet

Reply
Thread Tools

servlet help - redirecting from within a framed servlet

 
 
ppcguy
Guest
Posts: n/a
 
      08-08-2005
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.


 
Reply With Quote
 
 
 
 
Andrea Desole
Guest
Posts: n/a
 
      08-08-2005


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.
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
__doPostBack and Response.direct not working in non-framed pages. =?Utf-8?B?Q2xhcw==?= ASP .Net 0 11-10-2005 01:35 PM
Help! Need online framed prints sduraybito@go.com Digital Photography 0 12-09-2004 04:56 AM
help read URL from framed JSP Chumpmeister Java 2 05-29-2004 10:08 AM
Servlet question(Tomcat, web.xml, servlet-class, servlet-name) circuit_breaker Java 2 04-04-2004 03:26 AM
Sessions when using Framed web site? =?Utf-8?B?Q2hyaXN0b3BoZXI=?= ASP .Net 1 01-26-2004 12:35 AM



Advertisments