Hi,
If I understand your application properly, C reloads frequently to perform
database tasks, yes?
If so, you would need to use some JavaScript to force the error.jsp page to
escape the frameset but have C.jsp remain in the frameset if everything is
ok.
So, it would work like this (pseudocode):
START:
C_looks_for_session_in_A
if(C_finds_session_in_A)
{
C_executes_some_database_code
goto_START
}
else
{
C_outputs_some_JavaScript_to_show_error.jsp_outside_of_frameset
}
The JavaScript code you would output to the browser would look like this :
<script language="JavaScript">
top.location.href = "error.jsp";
</script>
If this isn't what you were talking about, provide some more information on
what your app is doing.
-----Original Message-----
From: Nanduri Amarnath [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, November 10, 1999 7:26 AM
To: [EMAIL PROTECTED]
Subject: Question for u genie(s)
Hi Genies ,
Share some of your magic with me...
I have a jsp page "A.jsp" which displays 2 jsp pages in separate frames.
Let's
call the frames "B.jsp" and "C.jsp".
'B' displays options to the user. 'C' talks to a database and displays data
to
the user. 'C' checks for a session that has been created in 'A'. If no
session
is present, it forwards to an error page "error.jsp" using the tag
<jsp:forward
page="error.jsp" />
My problem is that "error.jsp" displays in the frame area of "C.jsp". Can i
do
something magical to make it display in the
whole browser window ( rather than the frame window ). Thank you in advance.
Cheers,
Amar..
===========================================================================
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