Hi Amar,
By making use of a dummy JSP file you can make error page to be
displayed in the whole browser window.
In C.jsp instead of calling error.jsp you call some dummy.jsp and from
dummy.jsp you can call error.jsp.
i.e.. <jsp:forward page="dummy.jsp">
The code for dummy.jsp is :
<HTML>
<BASE TARGET="_top">
<HEAD>
<SCRIPT LANGUAGE="JavaScript">
<!--
function loadJSP() {
parent.location.href="error.jsp";
}
file://-->
</SCRIPT>
</HEAD>
<BODY onLoad="loadJSP()">
</BODY>
</HTML>
This way only if there is an error, the page opens in the whole browser
window, else all other windows will be displayed in the same frame.
Hope this helps.
-- Prasanna
----- Original Message -----
From: Nanduri Amarnath <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, November 10, 1999 1:55 AM
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