Welcome to WebmasterWorld Guest from 54.196.238.210

Forum Moderators: incrediBILL

Message Too Old, No Replies

response.redirect in servlets

     

manjumurthy

12:03 pm on Jun 26, 2001 (gmt 0)

10+ Year Member



I have a servlet that constructs an html page with frames. i am redirecting the servlet response to another html page through response.reDirect. can u guide me as to how i can cause the html page to open in the main window instead of the current frame. i want to do this when i'm redirecting the resonse to the html page

thanx
manju

joshie76

12:10 pm on Jun 26, 2001 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Welcome to WebmasterWorld manjumurthy,

As far as I'm aware you can only break the frameset down client side.

The easiest way I can think of doing this is to Response.Redirect to a page containing some JavaScript that breaks down the frameset

function destroyFrames()
{
window.top.location.replace("redirectedURL")
}

This script could be generated server side to allow the redirectedURL to be placed dynamically.

I think thats clear!?

 

Featured Threads

Hot Threads This Week

Hot Threads This Month