Ronak,
This is a very common problem. Unfortunately, once you've sent your request
to the server with your intended target you're stuck with it. There are a
few solutions. You could display a special "you have timed out page" in the
target frame, but if the frame is too small or otherwise not well suited to
that, you could add some Javascript to the page to reloaded it targeted to
top with something like this:
<SCRIPT LANGUAGE="JavaScript">
<!--
if (top != self) top.location.href = location.href;
//-->
</SCRIPT>
HTH
Dan
--
Daniel Kirkdorffer
NACN IS: 425-580-6225
Sr. Consultant, Syllogistics LLC
Email: [EMAIL PROTECTED]
Web: http://www.syllogistics.com/
> ----------
> From: Ronak Shah[SMTP:[EMAIL PROTECTED]]
> Reply To: Ronak Shah
> Sent: Wednesday, September 08, 1999 3:03 PM
> To: [EMAIL PROTECTED]
> Subject: How to set target attribute when redirecting to another JSP
>
> I want to know if there is a way to set HTML "TARGET" attribute (want to
> set
> TARGET="_top") when I redirect to another JSP page.
>
> I understand that this mechanism is not a standard UI practice. This is
> needed when a user logs in and enters a framed version of HTML UI. A
> session
> is created as part of logging in. All the user actions are updated on a
> separate content pane. If the user does not perform any activity for
> significant time (like more than 30 minutes for most web servers), the
> session becomes invalid. At this point if the user performs an action on
> the
> UI then corresponding JSP page detects that session is invalid and
> redirects
> the user to Login page. This requires the page to be rendered in "_top"
> frame.
>
> Ronak
>
> ==========================================================================
> =
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
> JSP-INTEREST".
> FAQs on JSP can be found at:
> http://java.sun.com/products/jsp/faq.html
> http://www.esperanto.org.nz/jsp/jspfaq.html
>
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
FAQs on JSP can be found at:
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.html