Welcome to WebmasterWorld Guest from 54.162.19.123

Forum Moderators: incrediBILL

Message Too Old, No Replies

response.redirect in servlets

     

manjumurthy

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

Inactive Member
Account Expired

 
 


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

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

Senior Member

WebmasterWorld Senior Member 10+ Year Member

joined:Apr 10, 2001
posts:793
votes: 0


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!?

 

Join The Conversation

Moderators and Top Contributors

Hot Threads This Week

Featured Threads

Free SEO Tools

Hire Expert Members