Dave,

If I'm understanding your requirements, try using the target attribute of
the form element.  Like anchors, forms can also have targets.  If you set
your username/password forms target to _top, the output of the servlet and
the subsequent redirect should replace the entire window.

I suspect that if the password fails, you don't want the user to be
redirected to the new frameset.  If this is the case, you may have to
introduce a quick intermediary page that gets returned by the servlet and
then performs the location replace to the appropriate page depending on
whether authentication occured.

Hope this helps.

Brian

-----Original Message-----
From: A mailing list for discussion about Sun Microsystem's Java Servlet
API Technology. [mailto:[EMAIL PROTECTED]]On Behalf Of Dave
Scott
Sent: Tuesday, August 10, 1999 10:36 AM
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