Re: servlet help - redirecting from within a framed servlet





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.
.




Relevant Pages

  • Re: 4 ASP.Net & C# questions
    ... want on submit of one to redirect the results to another frame... ... target is there cause its a part of generic html. ... > "Hermit Dave" wrote: ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: 4 ASP.Net & C# questions
    ... Instead of going the Javascript route with this I'm looking at redesigning ... > want on submit of one to redirect the results to another frame... ... target is there cause its a part of generic html. ...
    (microsoft.public.dotnet.framework.aspnet)
  • Frames
    ... In html I can send a pageto another frame using "Target". ... I can Redirect to another page from Asp but I can't work out how to send to ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: 4 ASP.Net & C# questions
    ... > "Hermit Dave" wrote: ... >> want on submit of one to redirect the results to another frame... ... >> javascript to redirect the second frame. ...
    (microsoft.public.dotnet.framework.aspnet)
  • RE: Issue using ASP.NET forms authenticationwith frame redirect
    ... The only thing I want is to use frame redirect to redirect a domain ... hosted at provider A to my server at provide B. ... In http://subdomain.domain2.com/web.config, there is forms authentication ...
    (microsoft.public.dotnet.framework.aspnet.security)