Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

how to provide link if browser don't respond to redirrect request 1

Status
Not open for further replies.

evelyntpc

Technical User
Jan 5, 2003
2
MY
i'm trying to code a servlet to redirect the response to another url and provide a link for the user to click on in case the browser does not repond correctly to the redirect request.
i've successfully coded the first part using res.sendRedirect() method. but coudl not figure out how to provide a link.
 
The problem I see is that your servlet would have to detect the failed redirect and try again with a different url - which I don't think is possible.

What if you always redirected to the page that had the manual link on it (with a message saying "click this link if you're not automatically redirected"), then had THAT page immediately redirect to the desired page, perhaps using javascript.

That way, if the second redirection failed, the user would be left with the manual page on screen ready for them to click on.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top