tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andreas Mohrig <andreas.moh...@cadooz.de>
Subject RE: forward to TOP-Frame
Date Wed, 14 Aug 2002 10:05:43 GMT
I'm afraid tomcat itself can't help you with this at all, since you really
have to convince the client browser to use the top frame to display your
page. Once the browser has requested your page to display within a subframe,
your page doesn't even know it is to be displayed within this subframe. You
would have to send back a page that instructs the browser to reaload another
(or the same) page in the top frame. Without JavaScript I would imagine this
to be quite difficult.

If this is _really_ important to you there may be another way, though. You
may be able to emulate your frame-structure by composing your jsp-pages
dynamically via <jsp:include page="somepage"/> and/or <%@ include
file="somefile"%>. I admit this would be a painful course of action if you
have already designed your application to use frames, but then you could
just send back a page missing alle the included parts, which will make it
"top".

greetings

Andreas Mohrig

-----Original Message-----
From: Harry Knörrer [mailto:hknoerrer@avs-vvs.de]
Sent: Wednesday, August 14, 2002 11:49 AM
To: 'Tomcat Users List'
Subject: AW: forward to TOP-Frame


And javascript isn't allowed

> -----Ursprüngliche Nachricht-----
> Von: Harry Knörrer [mailto:hknoerrer@avs-vvs.de]
> Gesendet: Mittwoch, 14. August 2002 11:45
> An: 'Tomcat Users List'
> Betreff: AW: forward to TOP-Frame
>
>
> This is a problem cause the forward should happen when the session is
> invalid.
> I check this in my controller.jsp
>
> > -----Ursprüngliche Nachricht-----
> > Von: Barney Hamish [mailto:Hamish.Barney@ect-telecoms.de]
> > Gesendet: Mittwoch, 14. August 2002 11:29
> > An: 'Tomcat Users List'
> > Betreff: RE: forward to TOP-Frame
> >
> >
> > You can't solve this with forward. You need to do this client
> > side with
> > either javascript or by changing whatever link the user
> > clicks on to to
> > include a target.
> > Hamish
> >
> > -----Original Message-----
> > From: Harry Knörrer [mailto:hknoerrer@avs-vvs.de]
> > Sent: Wednesday, August 14, 2002 11:27 AM
> > To: Tomcat-Liste (E-Mail)
> > Subject: jsp:forward to TOP-Frame
> >
> >
> > Hello!
> >
> > I want to forward the request to a page but it should be shown in my
> > top-frame.
> >
> > e.g href="logindialogController.jsp?formcommand=logout"
> > target = "_top"
> >
> > How can i solve this with jsp:forward
> >
> > or any other solution?
> >
> >
> >
> > Thanks
> > Harry Knoerrer
> >
> > --
> > To unsubscribe, e-mail:
> <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
> For additional commands, e-mail:
> <mailto:tomcat-user-help@jakarta.apache.org>
>

--
To unsubscribe, e-mail:   <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:tomcat-user-help@jakarta.apache.org>


Mime
View raw message