The problem is that the link.. etc which I'm using.
Points to an servlet.
In the case, that the user has logged in, e everything is fine.
The new serlet gets loaded and displays the data on the right place.

But when he hasn't logged in (for example typing the url of the index.html)
the servlet should redirect to the loginservlet.

Bt the Loginservlet should get displayed in the whole browser and the other
frames
should be removed. 
(if you know that the servlet would redirect to the loginservlet you could
write the target attribute to the htmlpage.)

How can I tell the redirect or the response-object that the redirected
servlet should
be displayed at the target _top?

-----Urspr�ngliche Nachricht-----
Von: Michael Weller [mailto:[EMAIL PROTECTED]]
Gesendet: Donnerstag, 4. April 2002 13:33
An: [EMAIL PROTECTED]
Betreff: Re: AW: Redirect question


hi!
use the 'target' attribute of the a tag. e.g.: <a href="foo" target=_top> 
opens foo in the top frame.

-mw

At 12:06 04.04.2002 +0200, you wrote:
>Oh probably i vorgot to write, that I'm not allowed to use javascript
>
>-----Urspr�ngliche Nachricht-----
>Von: Matthias Hanel [mailto:[EMAIL PROTECTED]]
>Gesendet: Donnerstag, 4. April 2002 10:36
>An: [EMAIL PROTECTED]
>Betreff: Redirect question
>
>
>I've got a website with multiple frames where each of this frames is a
>Servlet.
>Everything works pretty good.
>
>Except when I press a button which should reload a frame.
>In the get-method of the other servlet I check if the user is already
logged
>in.
>If he isn't logged in I want to redirect to the Login.
>The Login should be on the whole browser, but it only gets displayed in the
>frame of the servlet which redirects to the Login.
>
>
>---------------------------------------------------------------------------
-
>----------------
>Hanel Matthias
>Fachinformatiker (Anwendungsentwicklung) in Ausbildung
>Logistik World GmbH     Fon:    +49-841-9014-300
>Marie-Curie-Strasse 6   Fax:    +49-841-9014-302
>D- 85055 Ingolstadt     mailto:[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

___________________________________________________________________________
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