one hack to do this - instead of using sendRedirect

at the point of redirect use:

out.println("<SCRIPT>top.location.href=\"....\"</SCRIPT>");

-----Original Message-----
From: Dave Scott [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, August 10, 1999 3:36 PM
To: [EMAIL PROTECTED]
Subject: Servlets, SSI and HTML Frames


I'm building a servlet that is initiated from a html page where you can
enter in your user name and password - the servlet then authenticates your
user name and password with a 3rd party application, if authentication is
successful, the servlet then redirects (using the sendRedirect() method) the
browser to a new web page. However, the new web page is also using frames,
and a different frameset from the page where the servlet was initially
called.

In standard html when you wish to replace one frameset with another you
specify the url and then supply the target="_top" parameter - i.e.

<a href="aaa.html" target="_top">Display Account Summary</a>

The sendRedirect method doesn't support any paramters - only a URL - the
question is how do I get my new frameset to be displayed at the top level,
replacing the current frameset on the browser ?

Can anyone help?

Dave Scott
Henley Software Consultants
E-mail: [EMAIL PROTECTED]

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to