ErrorPage

1999-05-14 Thread Pascal Guilloteau

I'm new on JSP... so sorry for this 'stupid' question maybe...


I try to cat the ERRORPAGE,
so I use an ERRORPAGE directive in my JSP Page :
 <%@ page ERRORPAGE="/errorpage.jsp" %>

But the ErrorPAge.JSP
I still have an error from JRUN 2.3 :
*
500 Internal Server Error

JSP Compile Error(s)

D:\JRun\jsm-default\services\jse\servlets\jsp\errorpage.java, line 68:
Undefined variable or class name exception


out.print("" + ( exception.getMessage() ) );
*


Here my errorpage.jsp source :

ERROR PAGE JSP

ERROR PAGE
I'm a JSP Error File !!!
<%= exception.getMessage() %>





If anyone can help me...
Thanks.

===
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JSP-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".



ErrorPage

2001-01-02 Thread Matthias Müller

Hy,

i have a problem with an Error Page. When an Error occures i become the
following message:

Any Ideas ?

Thanks in advance for your help.

Matthias

java.lang.IllegalStateException: Cannot forward as OutputStream or Writer
has already been obtained
at
org.apache.tomcat.core.RequestDispatcherImpl.forward(RequestDispatcherImpl.j
ava:130)
at
org.apache.jasper.runtime.PageContextImpl.forward(PageContextImpl.java:357)
at
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImp
l.java:381)
at
jsp._0002fjsp_0002fcountryhits_0002ejspcountryhits_jsp_2._jspService(_0002fj
sp_0002fcountryhits_0002ejspcountryhits_jsp_2.java:543)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:126)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.jasper.runtime.JspServlet$JspServletWrapper.service(JspServlet.ja
va:174)
at org.apache.jasper.runtime.JspServlet.serviceJspFile(JspServlet.java:261)
at org.apache.jasper.runtime.JspServlet.service(JspServlet.java:369)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.tomcat.core.ServletWrapper.handleRequest(ServletWrapper.java:503)
at org.apache.tomcat.core.ContextManager.service(ContextManager.java:559)
at
org.apache.tomcat.service.connector.Ajp12ConnectionHandler.processConnection
(Ajp12ConnectionHandler.java:156)
at
org.apache.tomcat.service.TcpConnectionThread.run(SimpleTcpEndpoint.java:338
)
at java.lang.Thread.run(Unknown Source)

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets



errorPage

2002-11-05 Thread Jan Arenö
Hi

I have a problem. I'm trying to use the <%@ page errorPage="error.jsp"%> on
my page.

This is the code

<%@ page errorPage="error.jsp"%>
<%
if(5(0 > 5)
{
out.println("testar");
}
%>

Of course this generates an error and i'm thrown to the error.jsp page...

But if I change the test page to:
<%@ page errorPage="error.jsp"%>


and UnknownBean is a non excisting class, I get an error and is not thrown
to the error.jsp page, why not?

[ERROR MSG]
oracle.jsp.parse.JspParseException: Line # 2, Error: Unable to find class
for bean: conn defined by tag with class: UnknownBean


I'm running an Oracle with an preinstalled Apache/TomCat(?)/JSP server...
Sometimes when I change some of my jsp files or update my class files the
PATH is going down for some pages and they cant find their beans. I need a
errorpage that tells me that this have happend but I can't figure out how.

If the errorhandler can't handle missing classes, how do I make a check that
reports to me when and if I loose my beans?


Thanks for any help

-Jan

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com



ERRORPAGE directive

1999-04-26 Thread fred muhlenberg

Does the ERRORPAGE directive actually work in the reference implementation
-or- is there some trick I'm missing?

If I (intentionally) don't have a compiled bean, I watch the reference
implementation spew compilation errors to standard out.  Shouldn't I be
redirected to my error page?

[my simple code]

Error.jsp



Search Error




An error has occured on your Service Request Search.



Search.jsp



Search



<%@ ERRORPAGE="Error.jsp" %>




Should't get here  :(



SearchBean.java
There is no code.


-Fred

===
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JSP-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".



Re: ErrorPage

1999-05-19 Thread Janco Tanis

Hi Pascal,

Assuming you are using JSP1.0, the errorpage.jsp should have a directive

<%@ page iserrorpage="true"%>. Only when this directive is set for a
page,
the implicit exception variable is accessable.


Pascal Guilloteau wrote:

> I'm new on JSP... so sorry for this 'stupid' question maybe...
>
> I try to cat the ERRORPAGE,
> so I use an ERRORPAGE directive in my JSP Page :
>  <%@ page ERRORPAGE="/errorpage.jsp" %>
>
> But the ErrorPAge.JSP
> I still have an error from JRUN 2.3 :
> *
> 500 Internal Server Error
>
> JSP Compile Error(s)
> 
> D:\JRun\jsm-default\services\jse\servlets\jsp\errorpage.java, line 68:

> Undefined variable or class name exception
>
> out.print("" + ( exception.getMessage() ) );
> *
>
> Here my errorpage.jsp source :
> 
> ERROR PAGE JSP
> 
> ERROR PAGE
> I'm a JSP Error File !!!
> <%= exception.getMessage() %>
> 
> 
> 
> 
>

--

Janco Tanis


  COAS, Your partner in computer aided services

   Nijverheidsweg 34Tel:   +31 (0) 187 49 3222
   Postbus 44   Fax:   +31 (0) 187 49 2912
   3250 AA Stellendam   Email: [EMAIL PROTECTED]

===
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JSP-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".



Errorpage directive

1999-10-12 Thread Dave Townsend

Perhaps someone can explain what is going wrong here.

I'm trying to get an error page to work, here is the first page I call:

-
<%@ page language="java" errorPage="error.jsp" %>

<% bad script; %>
-

Obviousley this fails to compile, so the errorpage referenced should be
called:

-
<%@ page language="java" isErrorPage="true" %>



Error Page


An error occured


-

Which does nothing, just explains what happenned. But this doesn't happen
the JSWDK just reports that it could not compile the page and suggests that
I should try using an errorpage to explain this problem.

Why doesn't this work?

===
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



errorPage / autoFlush

2000-11-22 Thread Markus Marzetta

Hi!

I have a potentially unbounded JSP displaying the results of a search
and would like to define an error page for it using e.g.

<%@ page errorPage="jspErrorPage.jsp" isErrorPage="false" %>

1st problem: if the generated page grows and exceeds the buffer size,
the buffer is flushed and, on exception, the error page is not
displayed because an IllegalStateException occurs on the way.

java.lang.IllegalStateException: Cannot forward as OutputStream
or Writer has already been obtained

so I tried setting

<%@ page autoFlush="false" %>

2nd problem: now, if the size of the generated page exceeds the buffer
size we obviously get

java.io.IOException: Error: JSP Buffer overflow

Question: How to solve these problems?


Maybe "buffer=none" solves the problem: Does anyone have experiences (perhaps even 
figures) on the costs in terms of performance?


Thanks in advance,
   Markus


P.S. I'm using Tomcat.

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets



Re: ErrorPage

2001-01-02 Thread Rui Santos António

You probably have already written something to the "outputStream".

Check out the "" tag's reference (i assume this is what you're
using) :

"... if the output is not buffered (page directive with buffer=none) and if
anything has been written to the buffer, using  results in an
IllegalStateException".

Hope this helps,
Rui

> Hy,
>
> i have a problem with an Error Page. When an Error occures i
> become the
> following message:
>
> Any Ideas ?
>
> Thanks in advance for your help.
>
> Matthias
>
> java.lang.IllegalStateException: Cannot forward as
> OutputStream or Writer
> has already been obtained
> at
> org.apache.tomcat.core.RequestDispatcherImpl.forward(RequestDi
> spatcherImpl.j
> ava:130)
> at
> org.apache.jasper.runtime.PageContextImpl.forward(PageContextI
> mpl.java:357)
> at
> org.apache.jasper.runtime.PageContextImpl.handlePageException(
> PageContextImp
> l.java:381)
> at
> jsp._0002fjsp_0002fcountryhits_0002ejspcountryhits_jsp_2._jspS
> ervice(_0002fj
> sp_0002fcountryhits_0002ejspcountryhits_jsp_2.java:543)
> at
> org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:126)
> at
> javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> at
> org.apache.jasper.runtime.JspServlet$JspServletWrapper.service
> (JspServlet.ja
> va:174)
> at
> org.apache.jasper.runtime.JspServlet.serviceJspFile(JspServlet
> .java:261)
> at
> org.apache.jasper.runtime.JspServlet.service(JspServlet.java:369)
> at
> javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> at
> org.apache.tomcat.core.ServletWrapper.handleRequest(ServletWra
> pper.java:503)
> at
> org.apache.tomcat.core.ContextManager.service(ContextManager.java:559)
> at
> org.apache.tomcat.service.connector.Ajp12ConnectionHandler.pro
> cessConnection
> (Ajp12ConnectionHandler.java:156)
> at
> org.apache.tomcat.service.TcpConnectionThread.run(SimpleTcpEnd
> point.java:338
> )
> at java.lang.Thread.run(Unknown Source)
>
> ==
> =
> To unsubscribe: mailto [EMAIL PROTECTED] with body:
> "signoff JSP-INTEREST".
> For digest: mailto [EMAIL PROTECTED] with body: "set
> JSP-INTEREST DIGEST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.html
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
>

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets



Re: errorPage

2002-11-05 Thread Padhu Vinirs
Have the contents of the JspWriter been flushed already before calling
the "useBean" action ? Then the error will not be transferred to the
"error.jsp". Also, make sure you set the isErrorPage="true". Also, set
the "keepGenerated" variable to "true". This will keep the generated
java source during translation. Make sure the bean instantiation is in a
try-catch which catches ClassNotFoundException. Tomcat catches this
exception and throws an InstantiationException.

-- padhu




Jan Arenö wrote:


Hi

I have a problem. I'm trying to use the <%@ page errorPage="error.jsp"%> on
my page.

This is the code

<%@ page errorPage="error.jsp"%>
<%
if(5(0 > 5)
{
   out.println("testar");
}
%>

Of course this generates an error and i'm thrown to the error.jsp page...

But if I change the test page to:
<%@ page errorPage="error.jsp"%>


and UnknownBean is a non excisting class, I get an error and is not thrown
to the error.jsp page, why not?

[ERROR MSG]
oracle.jsp.parse.JspParseException: Line # 2, Error: Unable to find class
for bean: conn defined by tag with class: UnknownBean


I'm running an Oracle with an preinstalled Apache/TomCat(?)/JSP server...
Sometimes when I change some of my jsp files or update my class files the
PATH is going down for some pages and they cant find their beans. I need a
errorpage that tells me that this have happend but I can't figure out how.

If the errorhandler can't handle missing classes, how do I make a check that
reports to me when and if I loose my beans?


Thanks for any help

-Jan

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

http://archives.java.sun.com/jsp-interest.html
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.jsp
http://www.jguru.com/faq/index.jsp
http://www.jspinsider.com





===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

http://archives.java.sun.com/jsp-interest.html
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.jsp
http://www.jguru.com/faq/index.jsp
http://www.jspinsider.com



Re: errorPage

2002-11-05 Thread Chua, Jerson
The errorPage works for runtime exception (exception thrown while processing
the request). 
What you have is a compile-time error (error occurred while converting your
jsp to servlet).

Jerson

-Original Message-
From: Jan Arenö [mailto:jan.areno@;HOME.SE]
Sent: Tuesday, November 05, 2002 8:31 AM
To: [EMAIL PROTECTED]
Subject: errorPage


Hi

I have a problem. I'm trying to use the <%@ page errorPage="error.jsp"%> on
my page.

This is the code

<%@ page errorPage="error.jsp"%>
<%
if(5(0 > 5)
{
out.println("testar");
}
%>

Of course this generates an error and i'm thrown to the error.jsp page...

But if I change the test page to:
<%@ page errorPage="error.jsp"%>


and UnknownBean is a non excisting class, I get an error and is not thrown
to the error.jsp page, why not?

[ERROR MSG]
oracle.jsp.parse.JspParseException: Line # 2, Error: Unable to find class
for bean: conn defined by tag with class: UnknownBean


I'm running an Oracle with an preinstalled Apache/TomCat(?)/JSP server...
Sometimes when I change some of my jsp files or update my class files the
PATH is going down for some pages and they cant find their beans. I need a
errorpage that tells me that this have happend but I can't figure out how.

If the errorhandler can't handle missing classes, how do I make a check that
reports to me when and if I loose my beans?


Thanks for any help

-Jan

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com

==To 
unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com



SV: errorPage

2002-11-05 Thread Jan Arenö
And there is nothing I can do about it?

The thing is that I run many application on the same server. Sometimes I
find one of the application in "errorstate" saying that he can't find a
bean-class (that it's been running for weeks)
If I restart the server, everything works fine again. The things is that I
don't have the time to check all my application all the time and needs to
get an notification telling me that a specific application have "failed".

Notice that it is just ONE application that stops responding at the time.
The others bean-class-paths works just fine...

Is there no way to deal with this problem?

//Jan

> -Ursprungligt meddelande-
> Från: A mailing list about Java Server Pages specification and reference
> [mailto:JSP-INTEREST@;JAVA.SUN.COM]För Chua, Jerson
> Skickat: den 5 november 2002 15:53
> Till: [EMAIL PROTECTED]
> Ämne: Re: errorPage
>
>
> The errorPage works for runtime exception (exception thrown while
> processing
> the request).
> What you have is a compile-time error (error occurred while
> converting your
> jsp to servlet).
>
> Jerson
>
> -Original Message-
> From: Jan Arenö [mailto:jan.areno@;HOME.SE]
> Sent: Tuesday, November 05, 2002 8:31 AM
> To: [EMAIL PROTECTED]
> Subject: errorPage
>
>
> Hi
>
> I have a problem. I'm trying to use the <%@ page
> errorPage="error.jsp"%> on
> my page.
>
> This is the code
>
> <%@ page errorPage="error.jsp"%>
> <%
> if(5(0 > 5)
> {
> out.println("testar");
> }
> %>
>
> Of course this generates an error and i'm thrown to the error.jsp page...
>
> But if I change the test page to:
> <%@ page errorPage="error.jsp"%>
> 
>
> and UnknownBean is a non excisting class, I get an error and is not thrown
> to the error.jsp page, why not?
>
> [ERROR MSG]
> oracle.jsp.parse.JspParseException: Line # 2, Error: Unable to find class
> for bean: conn defined by tag with class: UnknownBean
>
>
> I'm running an Oracle with an preinstalled Apache/TomCat(?)/JSP server...
> Sometimes when I change some of my jsp files or update my class files the
> PATH is going down for some pages and they cant find their beans. I need a
> errorpage that tells me that this have happend but I can't figure out how.
>
> If the errorhandler can't handle missing classes, how do I make a
> check that
> reports to me when and if I loose my beans?
>
>
> Thanks for any help
>
> -Jan
>
> ==
> =
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
> JSP-INTEREST".
> For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
> DIGEST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
>  http://archives.java.sun.com/jsp-interest.html
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.jsp
>  http://www.jguru.com/faq/index.jsp
>  http://www.jspinsider.com
>
> =
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
> JSP-INTEREST".
> For digest: mailto [EMAIL PROTECTED] with body: "set
> JSP-INTEREST DIGEST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
>  http://archives.java.sun.com/jsp-interest.html
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.jsp
>  http://www.jguru.com/faq/index.jsp
>  http://www.jspinsider.com
>

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com



Re: errorPage

2002-11-05 Thread Chua, Jerson
Try to fix the problem. Have you checked your classpath? 

-Original Message-
From: Jan Arenö [mailto:jan.areno@;HOME.SE]
Sent: Tuesday, November 05, 2002 10:19 AM
To: [EMAIL PROTECTED]
Subject: SV: errorPage


And there is nothing I can do about it?

The thing is that I run many application on the same server. Sometimes I
find one of the application in "errorstate" saying that he can't find a
bean-class (that it's been running for weeks)
If I restart the server, everything works fine again. The things is that I
don't have the time to check all my application all the time and needs to
get an notification telling me that a specific application have "failed".

Notice that it is just ONE application that stops responding at the time.
The others bean-class-paths works just fine...

Is there no way to deal with this problem?

//Jan

> -Ursprungligt meddelande-
> Från: A mailing list about Java Server Pages specification and reference
> [mailto:JSP-INTEREST@;JAVA.SUN.COM]För Chua, Jerson
> Skickat: den 5 november 2002 15:53
> Till: [EMAIL PROTECTED]
> Ämne: Re: errorPage
>
>
> The errorPage works for runtime exception (exception thrown while
> processing
> the request).
> What you have is a compile-time error (error occurred while
> converting your
> jsp to servlet).
>
> Jerson
>
> -Original Message-
> From: Jan Arenö [mailto:jan.areno@;HOME.SE]
> Sent: Tuesday, November 05, 2002 8:31 AM
> To: [EMAIL PROTECTED]
> Subject: errorPage
>
>
> Hi
>
> I have a problem. I'm trying to use the <%@ page
> errorPage="error.jsp"%> on
> my page.
>
> This is the code
>
> <%@ page errorPage="error.jsp"%>
> <%
> if(5(0 > 5)
> {
> out.println("testar");
> }
> %>
>
> Of course this generates an error and i'm thrown to the error.jsp page...
>
> But if I change the test page to:
> <%@ page errorPage="error.jsp"%>
> 
>
> and UnknownBean is a non excisting class, I get an error and is not thrown
> to the error.jsp page, why not?
>
> [ERROR MSG]
> oracle.jsp.parse.JspParseException: Line # 2, Error: Unable to find class
> for bean: conn defined by tag with class: UnknownBean
>
>
> I'm running an Oracle with an preinstalled Apache/TomCat(?)/JSP server...
> Sometimes when I change some of my jsp files or update my class files the
> PATH is going down for some pages and they cant find their beans. I need a
> errorpage that tells me that this have happend but I can't figure out how.
>
> If the errorhandler can't handle missing classes, how do I make a
> check that
> reports to me when and if I loose my beans?
>
>
> Thanks for any help
>
> -Jan
>
> ==
> =
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
> JSP-INTEREST".
> For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
> DIGEST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
>  http://archives.java.sun.com/jsp-interest.html
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.jsp
>  http://www.jguru.com/faq/index.jsp
>  http://www.jspinsider.com
>
> =
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
> JSP-INTEREST".
> For digest: mailto [EMAIL PROTECTED] with body: "set
> JSP-INTEREST DIGEST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
>  http://archives.java.sun.com/jsp-interest.html
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.jsp
>  http://www.jguru.com/faq/index.jsp
>  http://www.jspinsider.com
>

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com

==To 
unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com



SV: errorPage

2002-11-05 Thread Jan Arenö
The classpath works fine, until something happends (think when I update
another application) and then the class can't be found.

Example
Yesterday application 1 and 2 worked fine. I made some updates to
application 2. Today, I get mail from users that application 1 is not
working. The error is that the bean can't be found. Application 2 is still
working

//Jan

> -Ursprungligt meddelande-
> Från: A mailing list about Java Server Pages specification and reference
> [mailto:JSP-INTEREST@;JAVA.SUN.COM]För Chua, Jerson
> Skickat: den 5 november 2002 16:25
> Till: [EMAIL PROTECTED]
> Ämne: Re: errorPage
>
>
> Try to fix the problem. Have you checked your classpath?
>
> -Original Message-
> From: Jan Arenö [mailto:jan.areno@;HOME.SE]
> Sent: Tuesday, November 05, 2002 10:19 AM
> To: [EMAIL PROTECTED]
> Subject: SV: errorPage
>
>
> And there is nothing I can do about it?
>
> The thing is that I run many application on the same server. Sometimes I
> find one of the application in "errorstate" saying that he can't find a
> bean-class (that it's been running for weeks)
> If I restart the server, everything works fine again. The things is that I
> don't have the time to check all my application all the time and needs to
> get an notification telling me that a specific application have "failed".
>
> Notice that it is just ONE application that stops responding at the time.
> The others bean-class-paths works just fine...
>
> Is there no way to deal with this problem?
>
> //Jan
>
> > -Ursprungligt meddelande-
> > Från: A mailing list about Java Server Pages specification and reference
> > [mailto:JSP-INTEREST@;JAVA.SUN.COM]För Chua, Jerson
> > Skickat: den 5 november 2002 15:53
> > Till: [EMAIL PROTECTED]
> > Ämne: Re: errorPage
> >
> >
> > The errorPage works for runtime exception (exception thrown while
> > processing
> > the request).
> > What you have is a compile-time error (error occurred while
> > converting your
> > jsp to servlet).
> >
> > Jerson
> >
> > -----Original Message-
> > From: Jan Arenö [mailto:jan.areno@;HOME.SE]
> > Sent: Tuesday, November 05, 2002 8:31 AM
> > To: [EMAIL PROTECTED]
> > Subject: errorPage
> >
> >
> > Hi
> >
> > I have a problem. I'm trying to use the <%@ page
> > errorPage="error.jsp"%> on
> > my page.
> >
> > This is the code
> >
> > <%@ page errorPage="error.jsp"%>
> > <%
> > if(5(0 > 5)
> > {
> > out.println("testar");
> > }
> > %>
> >
> > Of course this generates an error and i'm thrown to the
> error.jsp page...
> >
> > But if I change the test page to:
> > <%@ page errorPage="error.jsp"%>
> > 
> >
> > and UnknownBean is a non excisting class, I get an error and is
> not thrown
> > to the error.jsp page, why not?
> >
> > [ERROR MSG]
> > oracle.jsp.parse.JspParseException: Line # 2, Error: Unable to
> find class
> > for bean: conn defined by tag with class: UnknownBean
> >
> >
> > I'm running an Oracle with an preinstalled Apache/TomCat(?)/JSP
> server...
> > Sometimes when I change some of my jsp files or update my class
> files the
> > PATH is going down for some pages and they cant find their
> beans. I need a
> > errorpage that tells me that this have happend but I can't
> figure out how.
> >
> > If the errorhandler can't handle missing classes, how do I make a
> > check that
> > reports to me when and if I loose my beans?
> >
> >
> > Thanks for any help
> >
> > -Jan
> >
> > ==
> > =
> > To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
> > JSP-INTEREST".
> > For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
> > DIGEST".
> > Some relevant FAQs on JSP/Servlets can be found at:
> >
> >  http://archives.java.sun.com/jsp-interest.html
> >  http://java.sun.com/products/jsp/faq.html
> >  http://www.esperanto.org.nz/jsp/jspfaq.jsp
> >  http://www.jguru.com/faq/index.jsp
> >  http://www.jspinsider.com
> >
> > =
> > To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
> > JSP-INTEREST".
> > For digest: mailto [EMAIL PROTECTED] with body: "set
> > JSP-INTEREST DIGEST".
> > Some relevant FAQs on JSP/Servlets c

Re: errorPage

2002-11-05 Thread Chua, Jerson
That's strange. Check your application server's documentation. 
Maybe it's your application server's bug and install
the appropriate patch.

Good luck. 

-Original Message-
From: Jan Arenö [mailto:jan.areno@;HOME.SE]
Sent: Tuesday, November 05, 2002 10:35 AM
To: [EMAIL PROTECTED]
Subject: SV: errorPage


The classpath works fine, until something happends (think when I update
another application) and then the class can't be found.

Example
Yesterday application 1 and 2 worked fine. I made some updates to
application 2. Today, I get mail from users that application 1 is not
working. The error is that the bean can't be found. Application 2 is still
working

//Jan

> -Ursprungligt meddelande-
> Från: A mailing list about Java Server Pages specification and reference
> [mailto:JSP-INTEREST@;JAVA.SUN.COM]För Chua, Jerson
> Skickat: den 5 november 2002 16:25
> Till: [EMAIL PROTECTED]
> Ämne: Re: errorPage
>
>
> Try to fix the problem. Have you checked your classpath?
>
> -Original Message-
> From: Jan Arenö [mailto:jan.areno@;HOME.SE]
> Sent: Tuesday, November 05, 2002 10:19 AM
> To: [EMAIL PROTECTED]
> Subject: SV: errorPage
>
>
> And there is nothing I can do about it?
>
> The thing is that I run many application on the same server. Sometimes I
> find one of the application in "errorstate" saying that he can't find a
> bean-class (that it's been running for weeks)
> If I restart the server, everything works fine again. The things is that I
> don't have the time to check all my application all the time and needs to
> get an notification telling me that a specific application have "failed".
>
> Notice that it is just ONE application that stops responding at the time.
> The others bean-class-paths works just fine...
>
> Is there no way to deal with this problem?
>
> //Jan
>
> > -Ursprungligt meddelande-
> > Från: A mailing list about Java Server Pages specification and reference
> > [mailto:JSP-INTEREST@;JAVA.SUN.COM]För Chua, Jerson
> > Skickat: den 5 november 2002 15:53
> > Till: [EMAIL PROTECTED]
> > Ämne: Re: errorPage
> >
> >
> > The errorPage works for runtime exception (exception thrown while
> > processing
> > the request).
> > What you have is a compile-time error (error occurred while
> > converting your
> > jsp to servlet).
> >
> > Jerson
> >
> > -Original Message-
> > From: Jan Arenö [mailto:jan.areno@;HOME.SE]
> > Sent: Tuesday, November 05, 2002 8:31 AM
> > To: [EMAIL PROTECTED]
> > Subject: errorPage
> >
> >
> > Hi
> >
> > I have a problem. I'm trying to use the <%@ page
> > errorPage="error.jsp"%> on
> > my page.
> >
> > This is the code
> >
> > <%@ page errorPage="error.jsp"%>
> > <%
> > if(5(0 > 5)
> > {
> > out.println("testar");
> > }
> > %>
> >
> > Of course this generates an error and i'm thrown to the
> error.jsp page...
> >
> > But if I change the test page to:
> > <%@ page errorPage="error.jsp"%>
> > 
> >
> > and UnknownBean is a non excisting class, I get an error and is
> not thrown
> > to the error.jsp page, why not?
> >
> > [ERROR MSG]
> > oracle.jsp.parse.JspParseException: Line # 2, Error: Unable to
> find class
> > for bean: conn defined by tag with class: UnknownBean
> >
> >
> > I'm running an Oracle with an preinstalled Apache/TomCat(?)/JSP
> server...
> > Sometimes when I change some of my jsp files or update my class
> files the
> > PATH is going down for some pages and they cant find their
> beans. I need a
> > errorpage that tells me that this have happend but I can't
> figure out how.
> >
> > If the errorhandler can't handle missing classes, how do I make a
> > check that
> > reports to me when and if I loose my beans?
> >
> >
> > Thanks for any help
> >
> > -Jan
> >
> > ==
> > =
> > To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
> > JSP-INTEREST".
> > For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
> > DIGEST".
> > Some relevant FAQs on JSP/Servlets can be found at:
> >
> >  http://archives.java.sun.com/jsp-interest.html
> >  http://java.sun.com/products/jsp/faq.html
> >  http://www.esperanto.org.nz/jsp/jspfaq.jsp
> >  http://www.jguru.com/faq/index.jsp
> &

Re: errorPage

2002-11-05 Thread KEITH KOSMICKI
Sounds like a similiar problem here; hope this helps:
http://dbforums.com/showthread.php?threadid=375070

Best,


Keith E. Kosmicki
Applications Consultant
State of IL Human Services
STL Technology Partners

>>> [EMAIL PROTECTED] 11/05/02 09:40AM >>>
That's strange. Check your application server's documentation. 
Maybe it's your application server's bug and install
the appropriate patch.

Good luck. 

-Original Message-
From: Jan Arenö [mailto:jan.areno@;HOME.SE] 
Sent: Tuesday, November 05, 2002 10:35 AM
To: [EMAIL PROTECTED] 
Subject: SV: errorPage


The classpath works fine, until something happends (think when I update
another application) and then the class can't be found.

Example
Yesterday application 1 and 2 worked fine. I made some updates to
application 2. Today, I get mail from users that application 1 is not
working. The error is that the bean can't be found. Application 2 is still
working

//Jan

> -Ursprungligt meddelande-
> Från: A mailing list about Java Server Pages specification and reference
> [mailto:JSP-INTEREST@;JAVA.SUN.COM]För Chua, Jerson
> Skickat: den 5 november 2002 16:25
> Till: [EMAIL PROTECTED] 
> Ämne: Re: errorPage
>
>
> Try to fix the problem. Have you checked your classpath?
>
> -Original Message-
> From: Jan Arenö [mailto:jan.areno@;HOME.SE] 
> Sent: Tuesday, November 05, 2002 10:19 AM
> To: [EMAIL PROTECTED] 
> Subject: SV: errorPage
>
>
> And there is nothing I can do about it?
>
> The thing is that I run many application on the same server. Sometimes I
> find one of the application in "errorstate" saying that he can't find a
> bean-class (that it's been running for weeks)
> If I restart the server, everything works fine again. The things is that I
> don't have the time to check all my application all the time and needs to
> get an notification telling me that a specific application have "failed".
>
> Notice that it is just ONE application that stops responding at the time.
> The others bean-class-paths works just fine...
>
> Is there no way to deal with this problem?
>
> //Jan
>
> > -Ursprungligt meddelande-
> > Från: A mailing list about Java Server Pages specification and reference
> > [mailto:JSP-INTEREST@;JAVA.SUN.COM]För Chua, Jerson
> > Skickat: den 5 november 2002 15:53
> > Till: [EMAIL PROTECTED] 
> > Ämne: Re: errorPage
> >
> >
> > The errorPage works for runtime exception (exception thrown while
> > processing
> > the request).
> > What you have is a compile-time error (error occurred while
> > converting your
> > jsp to servlet).
> >
> > Jerson
> >
> > -Original Message-
> > From: Jan Arenö [mailto:jan.areno@;HOME.SE] 
> > Sent: Tuesday, November 05, 2002 8:31 AM
> > To: [EMAIL PROTECTED] 
> > Subject: errorPage
> >
> >
> > Hi
> >
> > I have a problem. I'm trying to use the <%@ page
> > errorPage="error.jsp"%> on
> > my page.
> >
> > This is the code
> >
> > <%@ page errorPage="error.jsp"%>
> > <%
> > if(5(0 > 5)
> > {
> > out.println("testar");
> > }
> > %>
> >
> > Of course this generates an error and i'm thrown to the
> error.jsp page...
> >
> > But if I change the test page to:
> > <%@ page errorPage="error.jsp"%>
> > 
> >
> > and UnknownBean is a non excisting class, I get an error and is
> not thrown
> > to the error.jsp page, why not?
> >
> > [ERROR MSG]
> > oracle.jsp.parse.JspParseException: Line # 2, Error: Unable to
> find class
> > for bean: conn defined by tag with class: UnknownBean
> >
> >
> > I'm running an Oracle with an preinstalled Apache/TomCat(?)/JSP
> server...
> > Sometimes when I change some of my jsp files or update my class
> files the
> > PATH is going down for some pages and they cant find their
> beans. I need a
> > errorpage that tells me that this have happend but I can't
> figure out how.
> >
> > If the errorhandler can't handle missing classes, how do I make a
> > check that
> > reports to me when and if I loose my beans?
> >
> >
> > Thanks for any help
> >
> > -Jan
> >
> > ==
> > =
> > To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
> > JSP-INTEREST".
> > For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
> > DIGEST".
> &

Re: errorPage

2002-11-05 Thread Zerbe John W
This is interesting...
What operating system are you using?
If some flavor of unix, are you using a symolic directory link in your classpath? I 
have seen issues where a symoblic link is used,
the symbolic link is resolved to the "real" directory in the app server's classpath. 
The symbolic link is changed while the app is up, but since the app is loading from 
the resolved directory, it continues to do so after the symoblic link is changed. If 
the "old" directory is moved or deleted, the app can no longer load classes. 


-Original Message-
From: Jan Arenö [mailto:jan.areno@;HOME.SE]
Sent: Tuesday, November 05, 2002 10:35 AM
To: [EMAIL PROTECTED]
Subject: SV: errorPage


The classpath works fine, until something happends (think when I update
another application) and then the class can't be found.

Example
Yesterday application 1 and 2 worked fine. I made some updates to
application 2. Today, I get mail from users that application 1 is not
working. The error is that the bean can't be found. Application 2 is still
working

//Jan

> -Ursprungligt meddelande-
> Från: A mailing list about Java Server Pages specification and reference
> [mailto:JSP-INTEREST@;JAVA.SUN.COM]För Chua, Jerson
> Skickat: den 5 november 2002 16:25
> Till: [EMAIL PROTECTED]
> Ämne: Re: errorPage
>
>
> Try to fix the problem. Have you checked your classpath?
>
> -Original Message-
> From: Jan Arenö [mailto:jan.areno@;HOME.SE]
> Sent: Tuesday, November 05, 2002 10:19 AM
> To: [EMAIL PROTECTED]
> Subject: SV: errorPage
>
>
> And there is nothing I can do about it?
>
> The thing is that I run many application on the same server. Sometimes I
> find one of the application in "errorstate" saying that he can't find a
> bean-class (that it's been running for weeks)
> If I restart the server, everything works fine again. The things is that I
> don't have the time to check all my application all the time and needs to
> get an notification telling me that a specific application have "failed".
>
> Notice that it is just ONE application that stops responding at the time.
> The others bean-class-paths works just fine...
>
> Is there no way to deal with this problem?
>
> //Jan
>
> > -Ursprungligt meddelande-
> > Från: A mailing list about Java Server Pages specification and reference
> > [mailto:JSP-INTEREST@;JAVA.SUN.COM]För Chua, Jerson
> > Skickat: den 5 november 2002 15:53
> > Till: [EMAIL PROTECTED]
> > Ämne: Re: errorPage
> >
> >
> > The errorPage works for runtime exception (exception thrown while
> > processing
> > the request).
> > What you have is a compile-time error (error occurred while
> > converting your
> > jsp to servlet).
> >
> > Jerson
> >
> > -Original Message-
> > From: Jan Arenö [mailto:jan.areno@;HOME.SE]
> > Sent: Tuesday, November 05, 2002 8:31 AM
> > To: [EMAIL PROTECTED]
> > Subject: errorPage
> >
> >
> > Hi
> >
> > I have a problem. I'm trying to use the <%@ page
> > errorPage="error.jsp"%> on
> > my page.
> >
> > This is the code
> >
> > <%@ page errorPage="error.jsp"%>
> > <%
> > if(5(0 > 5)
> > {
> > out.println("testar");
> > }
> > %>
> >
> > Of course this generates an error and i'm thrown to the
> error.jsp page...
> >
> > But if I change the test page to:
> > <%@ page errorPage="error.jsp"%>
> > 
> >
> > and UnknownBean is a non excisting class, I get an error and is
> not thrown
> > to the error.jsp page, why not?
> >
> > [ERROR MSG]
> > oracle.jsp.parse.JspParseException: Line # 2, Error: Unable to
> find class
> > for bean: conn defined by tag with class: UnknownBean
> >
> >
> > I'm running an Oracle with an preinstalled Apache/TomCat(?)/JSP
> server...
> > Sometimes when I change some of my jsp files or update my class
> files the
> > PATH is going down for some pages and they cant find their
> beans. I need a
> > errorpage that tells me that this have happend but I can't
> figure out how.
> >
> > If the errorhandler can't handle missing classes, how do I make a
> > check that
> > reports to me when and if I loose my beans?
> >
> >
> > Thanks for any help
> >
> > -Jan
> >
> > ==
> > =
> > To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
> > JSP-INTEREST".
> &

Re: ERRORPAGE directive

1999-04-26 Thread Magnus Stenman

No, the ERRORPAGE directive only concerns runtime errors, not compilation
errors. At least that is how it's implemented in Orion and apparently in the
reference implementation too. I'm glad to hear that the reference impl acts
the same (that we interpreted the spec correctly). :)

/Magnus Stenman
http://orion.evermind.net

-Original Message-
From:   A mailing list about Java Server Pages specification and
reference [mailto:[EMAIL PROTECTED]] On Behalf Of fred muhlenberg
Sent:   den 26 april 1999 21:38
To: [EMAIL PROTECTED]
Subject:    ERRORPAGE directive

Does the ERRORPAGE directive actually work in the reference implementation
-or- is there some trick I'm missing?

If I (intentionally) don't have a compiled bean, I watch the reference
implementation spew compilation errors to standard out.  Shouldn't I be
redirected to my error page?

[my simple code]

Error.jsp



Search Error




An error has occured on your Service Request Search.



Search.jsp



Search



<%@ ERRORPAGE="Error.jsp" %>




Should't get here  :(



SearchBean.java
There is no code.


-Fred

===
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JSP-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".

===
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JSP-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".



Re: ERRORPAGE directive

1999-05-14 Thread Guilloteau Pascal

Sorry but with JRUN 2.3 I can use ERRORPAGE directive for compilation error,
but I have some troubel to get the exception bean back...

Just try to put the all path of your error page
<% ERRORPAGE="/Blabla.jsp" %>

(it's seem to work better with FULL PATH, and JSP Url (ERRORPAGE to an HTML UTL cause 
some trouble in my configuration) :-(


On Tue, 27 Apr 1999 00:09:17 +0200, Magnus Stenman <[EMAIL PROTECTED]> wrote:

>No, the ERRORPAGE directive only concerns runtime errors, not compilation
>errors. At least that is how it's implemented in Orion and apparently in the
>reference implementation too. I'm glad to hear that the reference impl acts
>the same (that we interpreted the spec correctly). :)
>
>/Magnus Stenman
>http://orion.evermind.net
>
>-Original Message-
>From:   A mailing list about Java Server Pages specification and
>reference [mailto:[EMAIL PROTECTED]] On Behalf Of fred muhlenberg
>Sent:   den 26 april 1999 21:38
>To: [EMAIL PROTECTED]
>Subject:ERRORPAGE directive
>
>Does the ERRORPAGE directive actually work in the reference implementation
>-or- is there some trick I'm missing?
>
>If I (intentionally) don't have a compiled bean, I watch the reference
>implementation spew compilation errors to standard out.  Shouldn't I be
>redirected to my error page?
>
>[my simple code]
>
>Error.jsp
>
>
>
>Search Error
>
>
>
>
>An error has occured on your Service Request Search.
>
>
>
>Search.jsp
>
>
>
>Search
>
>
>
><%@ ERRORPAGE="Error.jsp" %>
>
>
>
>
>Should't get here  :(
>
>
>
>SearchBean.java
>There is no code.
>
>
>-Fred
>
> ==
>To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
>of the message "signoff JSP-INTEREST".  For general help, send email to
>[EMAIL PROTECTED] and include in the body of the message "help".
>
> ==
>To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
>of the message "signoff JSP-INTEREST".  For general help, send email to
>[EMAIL PROTECTED] and include in the body of the message "help".

===
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JSP-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".



Jrun's errorpage/iserrorpage ?

1999-06-08 Thread Will Berger

Does anyone know if the page directive attribute errorpage/iserrorpage
has been implemented in livesoftware's jrun product?

Currently I am running release 1.0 beta and can't seem to get it to
work, but sun's reference implementation seems to work.  I didn't see
any references to this in jrun's examples.

Any info would be much appreciated.

Will

--
Will Berger
Premier Objects, LLC
[EMAIL PROTECTED]
www.premierobjects.com
(678)377-9750

===
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JSP-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".



Re: Errorpage directive

1999-10-12 Thread Shawn Lohstroh

Dave,
The errorPage directive is a runtime directive, not a compile time
directive. If an exception occurs during execution of the page, the
errorPage will be called. If an error occurs during compilation of your JSP
page, it is up to your JSP engine to report the error.

-Shawn


- Original Message -
From: Dave Townsend <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, October 12, 1999 12:44 PM
Subject: Errorpage directive


> Perhaps someone can explain what is going wrong here.
>
> I'm trying to get an error page to work, here is the first page I
call:
>
> -
> <%@ page language="java" errorPage="error.jsp" %>
>
> <% bad script; %>
> -
>
> Obviousley this fails to compile, so the errorpage referenced should be
> called:
>
> -
> <%@ page language="java" isErrorPage="true" %>
>
> 
> 
> Error Page
> 
> 
> An error occured
> 
> 
> -
>
> Which does nothing, just explains what happenned. But this doesn't happen
> the JSWDK just reports that it could not compile the page and suggests
that
> I should try using an errorpage to explain this problem.
>
> Why doesn't this work?
>
>
===
> 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



Re: Errorpage directive

1999-10-12 Thread Dave Townsend

I have just tried this as the page causing the error:

-
<%@ page language="java" errorPage="http://localhost/error.jsp" %>






<% Exception err = new Exception();
   throw err; %>



-

It should compile fine, but it still doesn't work.

Dave

-Original Message-
From: Shawn Lohstroh [mailto:[EMAIL PROTECTED]]
Sent: 12 October 1999 19:30
To: Dave Townsend; [EMAIL PROTECTED]
Subject: Re: Errorpage directive


Dave,
The errorPage directive is a runtime directive, not a compile time
directive. If an exception occurs during execution of the page, the
errorPage will be called. If an error occurs during compilation of your JSP
page, it is up to your JSP engine to report the error.

-Shawn


- Original Message -
From: Dave Townsend <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, October 12, 1999 12:44 PM
Subject: Errorpage directive


> Perhaps someone can explain what is going wrong here.
>
> I'm trying to get an error page to work, here is the first page I
call:
>
> -
> <%@ page language="java" errorPage="error.jsp" %>
>
> <% bad script; %>
> -
>
> Obviousley this fails to compile, so the errorpage referenced should be
> called:
>
> -
> <%@ page language="java" isErrorPage="true" %>
>
> 
> 
> Error Page
> 
> 
> An error occured
> 
> 
> -
>
> Which does nothing, just explains what happenned. But this doesn't happen
> the JSWDK just reports that it could not compile the page and suggests
that
> I should try using an errorpage to explain this problem.
>
> Why doesn't this work?
>
>
===
> 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



Re: Errorpage directive

1999-10-12 Thread Friedman, Richard

Dave,

They code you have shown is not compilable.


public void test()
{
System.out.println( "test" );
throw new NullPointerException();
System.out.println( "test" );
}

would not compile with an error, statement (at line... (the second print
statement) is not reachable ))
however


public void test()
{
System.out.println( "test" );
if ( true )
throw new NullPointerException();
System.out.println( "test" );
}

does compile..

Change your code to...

<%
if ( true ) throw new NullPointerException();
%>


*** You must use an Exception that extends RuntimeException or is a
Throwable or else it most likely will still not compile,
since the method declaration does not define exception to be thrown.

-Rich.

-Original Message-
From: Dave Townsend [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, October 12, 1999 2:40 PM
To: [EMAIL PROTECTED]
Subject: Re: Errorpage directive


I have just tried this as the page causing the error:

-
<%@ page language="java" errorPage="http://localhost/error.jsp" %>






<% Exception err = new Exception();
   throw err; %>



-

It should compile fine, but it still doesn't work.

Dave

-Original Message-
From: Shawn Lohstroh [mailto:[EMAIL PROTECTED]]
Sent: 12 October 1999 19:30
To: Dave Townsend; [EMAIL PROTECTED]
Subject: Re: Errorpage directive


Dave,
The errorPage directive is a runtime directive, not a compile time
directive. If an exception occurs during execution of the page, the
errorPage will be called. If an error occurs during compilation of your JSP
page, it is up to your JSP engine to report the error.

-Shawn


- Original Message -
From: Dave Townsend <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, October 12, 1999 12:44 PM
Subject: Errorpage directive


> Perhaps someone can explain what is going wrong here.
>
> I'm trying to get an error page to work, here is the first page I
call:
>
> -
> <%@ page language="java" errorPage="error.jsp" %>
>
> <% bad script; %>
> -
>
> Obviousley this fails to compile, so the errorpage referenced should be
> called:
>
> -
> <%@ page language="java" isErrorPage="true" %>
>
> 
> 
> Error Page
> 
> 
> An error occured
> 
> 
> -
>
> Which does nothing, just explains what happenned. But this doesn't happen
> the JSWDK just reports that it could not compile the page and suggests
that
> I should try using an errorpage to explain this problem.
>
> Why doesn't this work?
>
>
===
> 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

===
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



Re: Errorpage directive

1999-10-12 Thread Carsten Heyl

>I have just tried this as the page causing the error:
>
>-
><%@ page language="java" errorPage="http://localhost/error.jsp" %>

The URL must be relative: (Spec 1.0/1.1, 2.5.2)
errorPage="/error.jsp"

>
>
>
>
>
>
><% Exception err = new Exception();
>   throw err; %>
>
>
>
>-
>
>It should compile fine, but it still doesn't work.
>
>Dave
>
>-Original Message-
>From: Shawn Lohstroh [mailto:[EMAIL PROTECTED]]
>Sent: 12 October 1999 19:30
>To: Dave Townsend; [EMAIL PROTECTED]
>Subject: Re: Errorpage directive
>
>
>Dave,
>The errorPage directive is a runtime directive, not a compile time
>directive. If an exception occurs during execution of the page, the
>errorPage will be called. If an error occurs during compilation of your JSP
>page, it is up to your JSP engine to report the error.
>
>-Shawn
>
>
>- Original Message -
>From: Dave Townsend <[EMAIL PROTECTED]>
>To: <[EMAIL PROTECTED]>
>Sent: Tuesday, October 12, 1999 12:44 PM
>Subject: Errorpage directive
>
>
>>     Perhaps someone can explain what is going wrong here.
>>
>> I'm trying to get an error page to work, here is the first page I
>call:
>>
>> -
>> <%@ page language="java" errorPage="error.jsp" %>
>>
>> <% bad script; %>
>> -
>>
>> Obviousley this fails to compile, so the errorpage referenced should be
>> called:
>>
>> -
>> <%@ page language="java" isErrorPage="true" %>
>>
>> 
>> 
>> Error Page
>> 
>> 
>> An error occured
>> 
>> 
>> -
>>
>> Which does nothing, just explains what happenned. But this doesn't happen
>> the JSWDK just reports that it could not compile the page and suggests
>that
>> I should try using an errorpage to explain this problem.
>>
>> Why doesn't this work?
>>
>>
>===
>> 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

Ciao,
Carsten Heyl

  Carsten Heyl  [EMAIL PROTECTED]
  NADS - Solutions on Nets  http://www.nads.de/
  NADS GmbH http://www.pixelboxx.de/
  Hildebrandtstr. 4ETel.: +49 211 933 02-90
D-40215 Duesseldorf Fax.: +49 211 933 02-93

===
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



Re: Errorpage directive

1999-10-12 Thread sdheepa

hi dave,

I  tried the code u sent.I just replaced the" bad script" with some error code.It
works fine.I have given the code for both the jsp files.Try this out.Hope this
helps.

Cheers,
Dheepa


ToError.jsp




<%@ page language="java" errorPage="error.jsp" %>
 <%  int x=0;
 int y=5;
 out.println(y/x);
  %>





error.jsp


 <%@ page language="java" isErrorPage="true" %>

 

 Error Page
 
 
 An error occured
 
 




























Dave Townsend wrote:

> Perhaps someone can explain what is going wrong here.
>
> I'm trying to get an error page to work, here is the first page I call:
>
> -
> <%@ page language="java" errorPage="error.jsp" %>
>
> <% bad script; %>
> -
>
> Obviousley this fails to compile, so the errorpage referenced should be
> called:
>
> -
> <%@ page language="java" isErrorPage="true" %>
>
> 
> 
> Error Page
> 
> 
> An error occured
> 
> 
> -
>
> Which does nothing, just explains what happenned. But this doesn't happen
> the JSWDK just reports that it could not compile the page and suggests that
> I should try using an errorpage to explain this problem.
>
> Why doesn't this work?
>
> ===
> 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



404 errorpage customization

2001-08-27 Thread SriHari

Hi
Where should i place the below xml information to redirect the 404/500 and
other general errors to a custom page
I am using  Tomcat 3.2.3 i have tried it in server.xml config file  with in
 tag
Pl specify where Tomcat finds the eror/404.jsp file ..



   404
   error/404.jsp
 

ant other Tips will be appreciated

Thanks
Sri Hari

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets



404 Errorpage Customization

2001-08-27 Thread SriHari

Hi
Where should i place the below xml information to redirect the 404/500 and
other general errors to a custom page
I am using  Tomcat 3.2.3 i have tried it in server.xml config file  with in
 tag
Pl specify where Tomcat finds the eror/404.jsp file ..



   404
   error/404.jsp
 

ant other Tips will be appreciated

Thanks
Sri Hari

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets



errorpage / include problem

2002-01-18 Thread Eric Cho



hi 
everyone,
 
i have a problem 
with having the <%@ page errorPage="/jsp/jspErrorPage.jsp" %> 
directive in a page that is included within a template jsp.
 
It seems to work ok 
on the template.jsp but not within the included page.  

 
This is what i get 
when i attempted this :

A recursive error was detected.
The server cannot use specified error page. Please check the application 
error-path.
Original Error: Error Message: ERROR: Cannot forward. Writer or 
Stream already obtained.Error Code: 500Target Servlet: 
nullError Stack: 

Root Error-1: ERROR: Cannot forward. Writer or Stream already 
obtained.java.lang.IllegalStateException: ERROR: Cannot forward. Writer or Stream already obtained. 
Is there any way around this? Thanks,Eric**
The contents of this email and any attachments are confidential.
It is intended for the named recipient(s) only.
If you have received this email in error please notify the system manager or  the 
sender immediately and do not disclose the contents to any one or make copies.

** eSafe scanned this email for viruses, vandals and malicious content **
**




Re: errorPage / autoFlush

2000-11-22 Thread Hans Bergsten

Markus Marzetta wrote:
>
> Hi!
>
> I have a potentially unbounded JSP displaying the results of a search
> and would like to define an error page for it using e.g.
>
>     <%@ page errorPage="jspErrorPage.jsp" isErrorPage="false" %>
>
> 1st problem: if the generated page grows and exceeds the buffer size,
> the buffer is flushed and, on exception, the error page is not
> displayed because an IllegalStateException occurs on the way.
>
> java.lang.IllegalStateException: Cannot forward as OutputStream
> or Writer has already been obtained
>
> so I tried setting
>
> <%@ page autoFlush="false" %>
>
> 2nd problem: now, if the size of the generated page exceeds the buffer
> size we obviously get
>
> java.io.IOException: Error: JSP Buffer overflow
>
> Question: How to solve these problems?
> 

The best (only, at least for now) solution is to set a very large
buffer size or somehow limit the amount of output your JSP page can
generate.

> Maybe "buffer=none" solves the problem: Does anyone have experiences
> (perhaps even figures) on the costs in terms of performance?

No, with "buffer=none" there's no buffering at all so you will
get the java.lang.IllegalStateException as soon as an attempt is
made to forward to the error page.

> Thanks in advance,
>Markus
>
> P.S. I'm using Tomcat.

In Tomcat 3.2 (at least I believe it made it into Beta 8), the error
handling has been modified so that if a forward can not be made
(due to a committed response resulting in IllegalStateException),
the error message will be "included" instead. I'm not 100%, but I
believe this applies to custom error pages as well. It's not perfect,
but it's better than the current situation. Try out Beta 8 and see how
it works for you.

Hans
--
Hans Bergsten   [EMAIL PROTECTED]
Gefion Software http://www.gefionsoftware.com

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets



Re: errorPage / autoFlush

2000-11-22 Thread Bala Murali

>>> [EMAIL PROTECTED] 11/22/00 5:13:22 PM >>>
Markus Marzetta wrote:
>
> Hi!
>
> I have a potentially unbounded JSP displaying the results of a search
> and would like to define an error page for it using e.g.
>
> <%@ page errorPage="jspErrorPage.jsp" isErrorPage="false" %>
>
> 1st problem: if the generated page grows and exceeds the buffer size,
> the buffer is flushed and, on exception, the error page is not
> displayed because an IllegalStateException occurs on the way.
>
> java.lang.IllegalStateException: Cannot forward as OutputStream
> or Writer has already been obtained
>
> so I tried setting
>
> <%@ page autoFlush="false" %>
>
> 2nd problem: now, if the size of the generated page exceeds the buffer
> size we obviously get
>
> java.io.IOException: Error: JSP Buffer overflow
>
> Question: How to solve these problems?
> 

The best (only, at least for now) solution is to set a very large
buffer size or somehow limit the amount of output your JSP page can
generate.

> Maybe "buffer=none" solves the problem: Does anyone have experiences
> (perhaps even figures) on the costs in terms of performance?

No, with "buffer=none" there's no buffering at all so you will
get the java.lang.IllegalStateException as soon as an attempt is
made to forward to the error page.

> Thanks in advance,
>Markus
>
> P.S. I'm using Tomcat.

In Tomcat 3.2 (at least I believe it made it into Beta 8), the error
handling has been modified so that if a forward can not be made
(due to a committed response resulting in IllegalStateException),
the error message will be "included" instead. I'm not 100%, but I
believe this applies to custom error pages as well. It's not perfect,
but it's better than the current situation. Try out Beta 8 and see how
it works for you.

Hans
--
Hans Bergsten   [EMAIL PROTECTED]
Gefion Software http://www.gefionsoftware.com

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

Disclaimer note:

Confidential information may be contained in this e-mail and any files transmitted 
with it ('Message'). If you are not the addressee indicated in this Message (or 
responsible for delivery of this Message to such person), you are hereby notified that 
any dissemination, distribution, printing or copying of this Message or any part 
thereof is strictly prohibited. In such a case, you should delete this Message 
immediately and advise the sender by return e-mail. Opinions, conclusions and other 
information in this Message that do not relate to the official business of Maxis shall 
be understood as neither given nor endorsed by Maxis.

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets



problem using errorpage directive

1999-06-07 Thread Mustafa Zafar

Hello Everybody,
I have a jsp page that have a compilation error and I want to catch that
error through the errorpage directive is it possible

login.jsp have compilation error this file contains
<%@ page errorpage = "errpage.jsp" %>

errpage.jsp contains
<%@ page iserrorpage = true %>

but this thing is'nt working
Any comments would be appreciated
Thankyou
Mustafa Zafar

===
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JSP-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".



Re: Jrun's errorpage/iserrorpage ?

1999-06-10 Thread Michael Halmich

...look at the JSP 1.0 Beta 1 Features located at /jsp/jspsamp/features.jsp

"... The pageContext and exception objects are not implemented. ..."


Michael

--
Stimm gegen SPAM! - Vote against SPAM!
http://www.politik-digital.de/spam/

===
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JSP-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".



Re: Jrun's errorpage/iserrorpage ?

1999-06-10 Thread Michael Halmich

> ...look at the JSP 1.0 Beta 1 Features located at /jsp/jspsamp/features.jsp

sorry, it's /jsp/jspsamp10/features.jsp

--
Stimm gegen SPAM! - Vote against SPAM!
http://www.politik-digital.de/spam/

===
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JSP-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".



Re: 404 Errorpage Customization

2001-08-28 Thread Young-Gun, Cho

that is related Apache configuration, i guess..

see the apache book or reference.

good luck!


SriHari wrote:

> Hi
> Where should i place the below xml information to redirect the 404/500 and
> other general errors to a custom page
> I am using  Tomcat 3.2.3 i have tried it in server.xml config file  with in
>  tag
> Pl specify where Tomcat finds the eror/404.jsp file ..
>
>
> 
>404
>error/404.jsp
>  
>
> ant other Tips will be appreciated
>
> Thanks
> Sri Hari
>
> ===
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
> For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.html
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
>
>
>

--
Young-Gun Cho (ICQ#: 75095244)
E-mail : [EMAIL PROTECTED]
Phone: 02.929.3060
Address: 91-226 SeongHo B/D 4F Room No. 402, ShinSeol-Dong, TongDaeMun-Gu, Seoul

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets



Re: 404 Errorpage Customization

2001-08-28 Thread Claudio Parnenzini

It's in your web.xml file under the  TAG.
 
Claudio

-Original Message- 
From: Young-Gun, Cho 
Sent: Tue 8/28/2001 10:33 AM 
To: [EMAIL PROTECTED] 
Cc: 
Subject: Re: 404 Errorpage Customization



that is related Apache configuration, i guess..

see the apache book or reference.

good luck!


SriHari wrote:

> Hi
> Where should i place the below xml information to redirect the
404/500 and
> other general errors to a custom page
> I am using  Tomcat 3.2.3 i have tried it in server.xml config
file  with in
>  tag
> Pl specify where Tomcat finds the eror/404.jsp file ..
>
>
> 
>404
>error/404.jsp
>  
>
> ant other Tips will be appreciated
>
> Thanks
> Sri Hari
>
>

===
> To unsubscribe: mailto [EMAIL PROTECTED] with body:
"signoff JSP-INTEREST".
> For digest: mailto [EMAIL PROTECTED] with body: "set
JSP-INTEREST DIGEST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.html
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
>
>
>

--
Young-Gun Cho (ICQ#: 75095244)
E-mail : [EMAIL PROTECTED]
Phone: 02.929.3060
Address: 91-226 SeongHo B/D 4F Room No. 402, ShinSeol-Dong,
TongDaeMun-Gu, Seoul



===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set
JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets


èº{.nÇ+‰·¦j)m¢X¬¶Ç«¾6¯j˧r‰°ŠØ[¡Ü¬Šè}òR<ƒSLZ+v(²ÙšŠ[h–+-±êڲéÜ¢l"¶èw+´” 
ÔÄDD“„I4¨™êޕëڞÑ@BÊ'%#ÿIêï•ëlq©Ûyú.Ö­†ÛiÿøÚ½«.Ê&þšèvç-³øì§÷Úªf–m§ÿðì¥êڞÚ(®   
  óþ;)þ;)}ª¡¶ia¶Úÿ0Ž«¹Ê&þ8.®ïßj¯ßjªZèì¦v¦x”†Ûiÿü0Â8.®ç(›øົ¿}ª¿}ª©j£²™Ú™äž®ù^¶


RE: 404 Errorpage Customization

2001-08-28 Thread SriHari

Hi
i tried placing the tag in web.xml  TAG.
how should i give the location of the file 404.jsp
where should i place the folder error/404.jsp
i tried in placing webapps and Root 

-Original Message-
From: Claudio Parnenzini [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, August 28, 2001 2:25 PM
To: [EMAIL PROTECTED]
Subject: Re: 404 Errorpage Customization


It's in your web.xml file under the  TAG.
 
Claudio

-Original Message- 
From: Young-Gun, Cho 
Sent: Tue 8/28/2001 10:33 AM 
To: [EMAIL PROTECTED] 
Cc: 
Subject: Re: 404 Errorpage Customization



that is related Apache configuration, i guess..

see the apache book or reference.

good luck!


SriHari wrote:

> Hi
> Where should i place the below xml information to redirect the
404/500 and
> other general errors to a custom page
> I am using  Tomcat 3.2.3 i have tried it in server.xml config
file  with in
>  tag
> Pl specify where Tomcat finds the eror/404.jsp file ..
>
>
> 
>404
>error/404.jsp
>  
>
> ant other Tips will be appreciated
>
> Thanks
> Sri Hari
>
>

===
> To unsubscribe: mailto [EMAIL PROTECTED] with body:
"signoff JSP-INTEREST".
> For digest: mailto [EMAIL PROTECTED] with body: "set
JSP-INTEREST DIGEST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.html
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
>
>
>

--
Young-Gun Cho (ICQ#: 75095244)
E-mail : [EMAIL PROTECTED]
Phone: 02.929.3060
Address: 91-226 SeongHo B/D 4F Room No. 402, ShinSeol-Dong,
TongDaeMun-Gu, Seoul



===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set
JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets


Nrzf%⅊lz焻j진w(
%#퟊51$Å¢b-虨bãµ®.&诖+anrIHí²…
LDDI0D㊓J^轩,rR?퇖^ꅶ   jm뜶ͫ   o鮇nr?焎}㗪ia
0z^æ…­í¢Š?꒪㲗ڪfmoÂƪꥨgjg%#ü
0
&8.jj吪Zvy'W

==To 
unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets



Re: 404 errorpage customization

2001-08-28 Thread Ashish Shrestha

Hi,

I put it in the web.xml in the conf directory of tomcat.

Ashish Shrestha

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets



Re: 404 errorpage customization

2001-08-30 Thread bipin_jsp

This code be placed in to web.xml file.


- Original Message -
From: SriHari <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, August 28, 2001 9:45 AM
Subject: 404 errorpage customization


> Hi
> Where should i place the below xml information to redirect the 404/500 and
> other general errors to a custom page
> I am using  Tomcat 3.2.3 i have tried it in server.xml config file  with
in
>  tag
> Pl specify where Tomcat finds the eror/404.jsp file ..
>
>
> 
>404
>error/404.jsp
>  
>
> ant other Tips will be appreciated
>
> Thanks
> Sri Hari
>
>
===
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
> For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
DIGEST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.html
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
>

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets



How-to: jsp:include + errorPage

2001-01-22 Thread [Frank Guchelaar]

I have a page which is built up like this (actually all pages in the
application are/should be built up like this):

- bof
.
.
<%@ errorPage="error.jsp"%>
.
.

.
.
- eof

It could occur that an exception is raised in the file 'webheader.jsp' how
can I redirect that error to the errorPage without getting
"java.lang.IllegalStateException: Cannot forward as OutputStream or Writer
has already been obtained".

Is it by default impossible to use an errorPage if the jsp:include tag is
used??

thanks,

Frank Guchelaar, VCD Automatisering
Development & Support
Software Developer
-

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets



Errorpage directive and Tomcat

2000-05-16 Thread Mugdha Kulkarni

Hi all,
I have a problem with my JSPs when I am using Tomcat with Apache.
I get following error while accessing my JSPs. These JSPs work fine with
Apache-Jserv.

org.apache.jasper.JasperException: Page directive: can't have multiple
occurrences of errorPage

Actually the page doesn't have errorpage directive in it and still it is
giving such an error, can anybody please help me ?

Thanks,
Mugdha


Get free email and a permanent address at http://www.netaddress.com/?N=1

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets



Errorpage directive and Tomcat

2000-05-17 Thread Mugdha Kulkarni

Hi all,
I have a problem with my JSPs when I am using Tomcat with Apache.
I get following error while accessing my JSPs. These JSPs work fine with
Apache-Jserv.

org.apache.jasper.JasperException: Page directive: can't have multiple
occurrences of errorPage

Actually the page doesn't have errorpage directive in it and still it is
giving such an error, can anybody please help me ?

Thanks,
Mugdha



Get free email and a permanent address at http://www.netaddress.com/?N=1

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets



error-page vs. errorPage

2002-07-15 Thread Jay Burgess

(I tried this question on the Tomcat list, and got no response.  Maybe it's
more of a JSP question? Thanks in advance.)

>Can someone explain the relationship between the  element in
>my webapp's WEB.XML versus the "errorPage" attribute of the page directive
>within a JSP?  I'm trying to create a single error page that handles any
>exceptions generated by the JSPs within my webapp, without having to name
>the error page in every JSP.
>
>To start with, I added the following to my web app's WEB.XML to indicate a
>"catch all" error page for the app:
>
> 
> java.lang.Exception
> /error.jsp
> 
>
>I also marked ERROR.JSP as an error page by including the following at the
>top (note the isErrorPage attribute):
>
> <%@ page contentType="text/html; charset=ISO-8859-1" buffer="64kb"
> isErrorPage="true" %>
>
>Unfortunately, when trying to access the "exception" object in ERROR.JSP,
>I get a NullPointerException, as though it doesn't exist.
>
>Since I thought this should work, I must be missing something?  (I'm using
>Tomcat 4.0.4, by the way.)
>
>Thanks.
>
>Jay


-- Jay Burgess [[EMAIL PROTECTED]]
Digital Archaeology Corporation
(913) 438-9444 x154

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com



Errorpage for compilation errors ?? (JSWDK)

1999-08-10 Thread Michael Rumpf

Hi !

We work on an integration of the JSWDK into the Homesite 4.0.1 environment
and we are pretty far now. The problem is that each time I show the page and
there is a compilation error, I need to switch back to the console window of
the JSWDK server to view the error. Under Win95 this is a nightmare because
often even the stacktrace is moving the actual error message out of the
window.

I thought about the following solutions:

1. Create an error page for compile- and runtime errors. But this seems to
work only for runtime errors, not for compile time errors. I think of
something like JServ, where the whole output is sent to the browser and can
be seen by the user.

2. Create a Windows application which redirects the output of the console
window into an edit field in another window. I know this is working but the
first approach would be much easier.

The first approach is much easier for the developer and for the user. Has
someone got an errorpage for compilation errors running ?

Michael Rumpf

===
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JSP-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".



Re: How-to: jsp:include + errorPage

2001-01-22 Thread Walt Meyer

Have you tried to include the file this way?

<%@ include file="foo.jsp" %>

Walt


-Original Message-
From: [Frank Guchelaar] [mailto:[EMAIL PROTECTED]]
Sent: Monday, January 22, 2001 4:36 AM
To: [EMAIL PROTECTED]
Subject: How-to: jsp:include + errorPage


I have a page which is built up like this (actually all pages in the
application are/should be built up like this):

- bof
.
.
<%@ errorPage="error.jsp"%>
.
.

.
.
- eof

It could occur that an exception is raised in the file 'webheader.jsp' how
can I redirect that error to the errorPage without getting
"java.lang.IllegalStateException: Cannot forward as OutputStream or Writer
has already been obtained".

Is it by default impossible to use an errorPage if the jsp:include tag is
used??

thanks,

Frank Guchelaar, VCD Automatisering
Development & Support
Software Developer
-

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets



Sending to errorpage from servlet?

2000-02-01 Thread Scott Ganyo

I have a mix of JSP and servlets on my site but I'd like the servlets
requests to end up in the same place as the JSP requests when there is an
Exception.  On my JSP pages, I use the errorpage directive.  How can I get
my servlets to go to that same page when there is an error?

Thanks,
Scott

===
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



Errorpage directive--how to use?

2000-02-12 Thread BIJUNAIRS

Hi,
  It's always recommended that we should use error pages in jsp files to
report errors that occur.
I want to know how it can be used? Does it mean that on occurrence of an
error the control moves to the error page from which we can use the
exception object and do whatever is required?
Where to use the  isErrorPage directive? In original jsp file or in the
error page?
An example would be a great help

Regards
---
Biju Nair

===
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



Re: Errorpage directive and Tomcat

2000-05-17 Thread Robert Nicholson

Any includes in this page?

- Original Message -
From: "Mugdha Kulkarni" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, May 17, 2000 3:13 AM
Subject: Errorpage directive and Tomcat


> Hi all,
> I have a problem with my JSPs when I am using Tomcat with Apache.
> I get following error while accessing my JSPs. These JSPs work fine with
> Apache-Jserv.
>
> org.apache.jasper.JasperException: Page directive: can't have multiple
> occurrences of errorPage
>
> Actually the page doesn't have errorpage directive in it and still it is
> giving such an error, can anybody please help me ?
>
> Thanks,
> Mugdha
>
>
> 
> Get free email and a permanent address at http://www.netaddress.com/?N=1
>
>
===
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.html
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
>

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets



Re: Errorpage directive and Tomcat

2000-05-17 Thread Abdul Sattar

Hi


I am new to jsp. please send me some material  that help me .
Sattar




- Original Message -
From: Mugdha Kulkarni <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, May 17, 2000 3:13 PM
Subject: Errorpage directive and Tomcat


>Hi all,
>I have a problem with my JSPs when I am using Tomcat with Apache.
>I get following error while accessing my JSPs. These JSPs work fine with
>Apache-Jserv.
>
>org.apache.jasper.JasperException: Page directive: can't have multiple
>occurrences of errorPage
>
>Actually the page doesn't have errorpage directive in it and still it is
>giving such an error, can anybody please help me ?
>
>Thanks,
>Mugdha
>
>
>
>Get free email and a permanent address at http://www.netaddress.com/?N=1
>
>===
>To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
>Some relevant FAQs on JSP/Servlets can be found at:
>
> http://java.sun.com/products/jsp/faq.html
> http://www.esperanto.org.nz/jsp/jspfaq.html
> http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
> http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
>

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets



Re: error-page vs. errorPage

2002-07-15 Thread Jayson Falkner

Hi Jay,

I think this is an issue which was resolved with JSP 2.0. The problem is
that an exception passed via web.xml uses the servlet spec, i.e. the
scoped variables set are :

javax.servlet.error.status_code java.lang.Integer
javax.servlet.error.exception_type java.lang.Class
javax.servlet.error.message java.lang.String
javax.servlet.error.exception java.lang.Throwable
javax.servlet.error.request_uri java.lang.String
javax.servlet.error.servlet_name java.lang.String

And the JSP 1.2 specs uses:

javax.servlet.jsp.jspException

So when you use web.xml for error handling (using JSP 1.2/Servlets 2.3)
you get a NullPointerException because you are trying to access
"javax.servlet.jsp.jspException" (i.e. exception) when it doesn't exist,
"javax.servlet.error.exception java.lang.Throwable" exists.

To solve the problem now, try something like:

<%
  if (exception == null) {
exception = (java.lang.Throwable)
request.getAttribute("javax.servlet.error.exception
java.lang.Throwable"); //remove line-wrap...
  }
%>

And you should be set. FYI, JSP 2.0 should do this automatically for
you, however, officially check the spec ;)

You should keep an eye on http://www.jspbook.com - Kevin Jones and I
have been working hard on a JSP 2.0 and Servlet 2.4 book which will be
out to compliment the upcoming specs. We cover this topic along with the
million other JSP/Servlet things you should know about!

Cheers,

Jayson Falkner
[EMAIL PROTECTED]


Jay Burgess wrote:
> (I tried this question on the Tomcat list, and got no response.  Maybe it's
> more of a JSP question? Thanks in advance.)
>
>> Can someone explain the relationship between the  element in
>> my webapp's WEB.XML versus the "errorPage" attribute of the page
>> directive
>> within a JSP?  I'm trying to create a single error page that handles any
>> exceptions generated by the JSPs within my webapp, without having to name
>> the error page in every JSP.
>>
>> To start with, I added the following to my web app's WEB.XML to
>> indicate a
>> "catch all" error page for the app:
>>
>> 
>> java.lang.Exception
>> /error.jsp
>> 
>>
>> I also marked ERROR.JSP as an error page by including the following at
>> the
>> top (note the isErrorPage attribute):
>>
>> <%@ page contentType="text/html; charset=ISO-8859-1" buffer="64kb"
>> isErrorPage="true" %>
>>
>> Unfortunately, when trying to access the "exception" object in ERROR.JSP,
>> I get a NullPointerException, as though it doesn't exist.
>>
>> Since I thought this should work, I must be missing something?  (I'm
>> using
>> Tomcat 4.0.4, by the way.)
>>
>> Thanks.
>>
>> Jay
>
>
>
> -- Jay Burgess [[EMAIL PROTECTED]]
>Digital Archaeology Corporation
>(913) 438-9444 x154
>
> ===
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
> JSP-INTEREST".
> For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
> DIGEST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
> http://archives.java.sun.com/jsp-interest.html
> http://java.sun.com/products/jsp/faq.html
> http://www.esperanto.org.nz/jsp/jspfaq.jsp
> http://www.jguru.com/faq/index.jsp
> http://www.jspinsider.com
>
>

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com



Re: error-page vs. errorPage

2002-07-15 Thread Hans Bergsten

Jay Burgess wrote:
> (I tried this question on the Tomcat list, and got no response.  Maybe it's
> more of a JSP question? Thanks in advance.)

Yes, this is related to the servlet and JSP specs, not a specific
implementation like Tomcat, see below.

>> Can someone explain the relationship between the  element in
>> my webapp's WEB.XML versus the "errorPage" attribute of the page
>> directive
>> within a JSP?  I'm trying to create a single error page that handles any
>> exceptions generated by the JSPs within my webapp, without having to name
>> the error page in every JSP.
>>
>> To start with, I added the following to my web app's WEB.XML to
>> indicate a
>> "catch all" error page for the app:
>>
>> 
>> java.lang.Exception
>> /error.jsp
>> 
>>
>> I also marked ERROR.JSP as an error page by including the following at
>> the
>> top (note the isErrorPage attribute):
>>
>> <%@ page contentType="text/html; charset=ISO-8859-1" buffer="64kb"
>> isErrorPage="true" %>
>>
>> Unfortunately, when trying to access the "exception" object in ERROR.JSP,
>> I get a NullPointerException, as though it doesn't exist.
>>
>> Since I thought this should work, I must be missing something?  (I'm
>> using
>> Tomcat 4.0.4, by the way.)

The "errorPage" attribute is defined by the JSP spec, of course, and
the  element in the web.xml file is defined by the servlet
spec. Both mechanism let you trap and process an exception, but the
the problem is that the servlet spec and the JSP spec use different
names for the request attribute used to pass on the exception to
the error page.

When you use "errorPage", the JSP spec says that the Throwable that
represents the exception must be sent as a request parameter named
"servlet.jsp.jspException". The implicit "exception" variable in the
error page is assigned the value of this request attribute.
The servletc spec says that a request attribute named "javax.servlet.
error.exception" must be used when an exception caught by 
is forwarded to an error page. Since this does not match the JSP spec
name, it's *not* assigned to the "exception" variable.

I describe a generic solution to this in detail in the upcoming 2nd
edition of my JSP book, but briefly, all you need to do is get hold
of the Throwable from the request attribute used by the servlet spec
instead. With scriptlets, it could look like this:

<%
   if (exception == null) {
 exception = request.getAttribute("javax.servlet.error.exception");
   }
%>

Hans
--
Hans Bergsten   [EMAIL PROTECTED]
Gefion Software http://www.gefionsoftware.com
JavaServer Pageshttp://TheJSPBook.com

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com



Re: error-page vs. errorPage

2002-07-15 Thread Jay Burgess

Much thanks to Jayson and Hans for their replies.  It all makes sense now.

And when they're published, I'll be picking up copies of both of your new
books to say thanks. :) I'm looking forward to their release.

Jay

 > -Original Message-
 > From: Jayson Falkner [mailto:[EMAIL PROTECTED]]
 > Sent: Monday, July 15, 2002 8:30 AM
 > To: [EMAIL PROTECTED]
 > Subject: Re: error-page vs. errorPage
 >
 >
 > Hi Jay,
 >
 > I think this is an issue which was resolved with JSP 2.0. The
 > problem is
 > that an exception passed via web.xml uses the servlet spec, i.e. the
 > scoped variables set are :
 >
 > javax.servlet.error.status_code java.lang.Integer
 > javax.servlet.error.exception_type java.lang.Class
 > javax.servlet.error.message java.lang.String
 > javax.servlet.error.exception java.lang.Throwable
 > javax.servlet.error.request_uri java.lang.String
 > javax.servlet.error.servlet_name java.lang.String
 >
 > And the JSP 1.2 specs uses:
 >
 > javax.servlet.jsp.jspException
 >
 > So when you use web.xml for error handling (using JSP
 > 1.2/Servlets 2.3)
 > you get a NullPointerException because you are trying to access
 > "javax.servlet.jsp.jspException" (i.e. exception) when it
 > doesn't exist,
 > "javax.servlet.error.exception java.lang.Throwable" exists.
 >
 > To solve the problem now, try something like:
 >
 > <%
 >   if (exception == null) {
 > exception = (java.lang.Throwable)
 > request.getAttribute("javax.servlet.error.exception
 > java.lang.Throwable"); //remove line-wrap...
 >   }
 > %>
 >
 > And you should be set. FYI, JSP 2.0 should do this automatically for
 > you, however, officially check the spec ;)
 >
 > You should keep an eye on http://www.jspbook.com - Kevin Jones and I
 > have been working hard on a JSP 2.0 and Servlet 2.4 book which will be
 > out to compliment the upcoming specs. We cover this topic
 > along with the
 > million other JSP/Servlet things you should know about!
 >
 > Cheers,
 >
 > Jayson Falkner
 > [EMAIL PROTECTED]
 >
 >
 > Jay Burgess wrote:
 > > (I tried this question on the Tomcat list, and got no
 > response.  Maybe it's
 > > more of a JSP question? Thanks in advance.)
 > >
 > >> Can someone explain the relationship between the
 >  element in
 > >> my webapp's WEB.XML versus the "errorPage" attribute of the page
 > >> directive
 > >> within a JSP?  I'm trying to create a single error page
 > that handles any
 > >> exceptions generated by the JSPs within my webapp, without
 > having to name
 > >> the error page in every JSP.
 > >>
 > >> To start with, I added the following to my web app's WEB.XML to
 > >> indicate a
 > >> "catch all" error page for the app:
 > >>
 > >> 
 > >> java.lang.Exception
 > >> /error.jsp
 > >> 
 > >>
 > >> I also marked ERROR.JSP as an error page by including the
 > following at
 > >> the
 > >> top (note the isErrorPage attribute):
 > >>
 > >> <%@ page contentType="text/html; charset=ISO-8859-1"
 > buffer="64kb"
 > >> isErrorPage="true" %>
 > >>
 > >> Unfortunately, when trying to access the "exception"
 > object in ERROR.JSP,
 > >> I get a NullPointerException, as though it doesn't exist.
 > >>
 > >> Since I thought this should work, I must be missing
 > something?  (I'm
 > >> using
 > >> Tomcat 4.0.4, by the way.)
 > >>
 > >> Thanks.
 > >>
 > >> Jay
 > >
 > >
 > >
 > > -- Jay Burgess [[EMAIL PROTECTED]]
 > >Digital Archaeology Corporation
 > >(913) 438-9444 x154
 > >

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com



ErrorPage behaviour using JSP Template

2003-02-28 Thread Jakab Gábor
Hello All,

I'm working on an app. for a given API. I am using a template which includes
the others (Login.jsp,ChangeData.jsp...) with the  into a
table.
In some cases of exceptions the errorPage comes properly, but sometimes
parts of the template appear twice just like if I use the  ...
I've read the specs, but I seem to missed sg.
Should I use always the <%@  include> and sendRedirect() in the template
instead?...Or save all exceptions...?
What is the common solution for this ?
pls. help

Best Regards
Gabor

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".

Some relevant archives, FAQs and Forums on JSPs can be found at:

 http://java.sun.com/products/jsp
 http://archives.java.sun.com/jsp-interest.html
 http://forums.java.sun.com
 http://www.jspinsider.com


errorPage in a multi-frame enviroment.

1999-12-12 Thread Jakob Ramskov



How would I make sure my errorPage get's displayed 
in a specific frame in a frame-set ?
 
- Jakob


Re: Sending to errorpage from servlet?

2000-02-01 Thread Govind Seshadri

Please see the jGuru FAQ entry "Can I invoke a JSP error page from a
servlet?"
http://www.jguru.com/jguru/faq/view.jsp?EID=1347

cheers,
Govind Seshadri
jGuru.com

> I have a mix of JSP and servlets on my site but I'd like the servlets
> requests to end up in the same place as the JSP requests when there is an
> Exception.  On my JSP pages, I use the errorpage directive.  How can I get
> my servlets to go to that same page when there is an error?
>
> Thanks,
> Scott
>
>
===
> 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



Errorpage directive and IPlanet 4.0 SP3

2000-02-10 Thread Sreekumar Pillai

How do you specify the errorpage directive in IPlanet(SP2)? (JSP 0.92). The
following code snippet doesn't work.

I checked the generated servlet from this JSP before and after adding the
errorpage directive. I can't see any difference in the generated code. Is it
a bug with IPlanet? Or Am I doing something silly?


<%@ errorpage="testerrorPage.jsp"%>

<%
   // the following line should throw a nullpointer exception.
   if ( request.getParameter("dummyvalue").equals( "dummy" ) )
   {
   }
%>
.

testerrorpage.jsp
---




An exception has occured.
The name of the exception is : <%=exception.getMessage() %>




__
Get Your Private, Free Email at http://www.hotmail.com

===
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



Re: [Re: Errorpage directive and Tomcat]

2000-05-17 Thread Mugdha Kulkarni

In fact I am getting the same problem in each of my JSPs. Even if it has
Errorpage directive or it doesn't have or it really does have multiple
errorpages directives. I have checked for all the includes so that there are
not multiple occurences of errorpage directive because of them. Still the
problem persists..

Mugdha

Robert Nicholson <[EMAIL PROTECTED]> wrote:
Any includes in this page?

- Original Message -
From: "Mugdha Kulkarni" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, May 17, 2000 3:13 AM
Subject: Errorpage directive and Tomcat


> Hi all,
> I have a problem with my JSPs when I am using Tomcat with Apache.
> I get following error while accessing my JSPs. These JSPs work fine with
> Apache-Jserv.
>
> org.apache.jasper.JasperException: Page directive: can't have multiple
> occurrences of errorPage
>
> Actually the page doesn't have errorpage directive in it and still it is
> giving such an error, can anybody please help me ?
>
> Thanks,
> Mugdha
>
>
> 
> Get free email and a permanent address at http://www.netaddress.com/?N=1
>
>
===
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.html
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
>

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets



Get free email and a permanent address at http://www.netaddress.com/?N=1

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets



error resolving relative path in 'errorPage'

2000-08-14 Thread Yashwant Balwant

I have question regarding error handling in JSP.
My site say 'Today' has two jsp files under two seperate folders namely
'News.jsp' under 'News' folder and 'failure.jsp' under 'failure'
folder. As you can see failure is my error page.
Now when an exception occurrs in news.jsp, my error page gets called
but the 'errorPage' attribute of 'page' directive says
"../failure/failure.jsp".
This is where the call fails and WebSphere gives me compilation error
since it cannot resolve '..' and I don't know how to go up the tree. Because
of our products structure, the failure page cannot be under same folder.
Can anyone please tell me how to get thsi path resolved? I wanted to make
the code neat with error handling... I don't want to use try.catch
everywhere in my jsp code or sendRedirect. As I use beans I don't have
servlet context in my java code.



Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets



error resolving relative path in 'errorPage'

2000-08-18 Thread Yashwant Balwant

I have question regarding error handling in JSP.
My site say 'Today' has two jsp files under two seperate folders namely
'News.jsp' under 'News' folder and 'failure.jsp' under 'failure'
folder. As you can see failure is my error page.
Now when an exception occurrs in news.jsp, my error page gets called
but the 'errorPage' attribute of 'page' directive says
"../failure/failure.jsp".
This is where the call fails and WebSphere gives me compilation error
since it cannot resolve '..' and I don't know how to go up the tree. Because
of our products structure, the failure page cannot be under same folder.
Can anyone please tell me how to get thsi path resolved? I wanted to make
the code neat with error handling... I don't want to use try.catch
everywhere in my jsp code or sendRedirect. As I use beans I don't have
servlet context in my java code.




Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets



Error resolving relative path in 'errorPage'

2000-08-21 Thread Yashwant Balwant

I have question regarding error handling in JSP.
My site say 'Today' has two jsp files under two seperate folders
namely
'News.jsp' under 'News' folder and 'failure.jsp' under 'failure'
folder. As you can see failure is my error page.
Now when an exception occurrs in news.jsp, my error page gets called
but the 'errorPage' attribute of 'page' directive says
"../failure/failure.jsp".
This is where the call fails and WebSphere gives me compilation
error since it cannot resolve '..' and I don't know how to go up the tree.
Because of our products structure, the failure page cannot be under same
folder.
Can anyone please tell me how to get thsi path resolved? I wanted to
make the code neat with error handling... I don't want to use try.catch
everywhere in my jsp code or sendRedirect. As I use beans I don't
have servlet context in my java code.





Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets



ERRORPAGE does not work on Netscape 4.6x

1999-11-16 Thread Rupesh Choubey
Title: ERRORPAGE does not work on Netscape 4.6x






Hi,


I have ERRORPAGE setup for my JSPsIT works beautifully on I.E.It does not work on Netscape.It displays the entire tag instead of redirecting to the errorpage...

EXPERTS  Please help with this issue.Thank you


Rupesh.





Re: errorPage in a multi-frame enviroment.

1999-12-13 Thread Suman Natarajan



 
Hi,
I had installed jswdk on my pc but when i start the server
it is giving an error "out of environment space".
Well i'am using jsdk but would like to try
jswdk which is giving a problem
I think it is a problem with system resources but i'am unable to figure
out.I have a lot of memory space in my hard disk.
When jsdk is working fine jswdk should also be working fine,right.
Please help,
thanx,
Suman




Re: errorPage in a multi-frame enviroment.

1999-12-14 Thread Stephen Summerfield

-Original Message-
From: A mailing list about Java Server Pages specification and reference
[mailto:[EMAIL PROTECTED]]On Behalf Of Suman Natarajan

>I had installed jswdk on my pc but when i start the server
>it is giving an error "out of environment space".
>Well i'am using jsdk but would like to try
>jswdk which is giving a problem
>I think it is a problem with system resources but i'am unable to figure
>out.I have a lot of memory space in my hard disk.
>When jsdk is working fine jswdk should also be working fine,right.
>Please help,

If you are running Windows 95/98 (as I suspect you are) you need to modify
CONFIG.SYS in c:\. If a line similar to the following isn't there add one:

SHELL=c:\windows\command.com /E:32768 /p

The '/E:32768' bit sets the DOS environment size. If there is already a line
like this simply increase the value.
Mine is set as above - ie 32KB.

Btw you'll need to reboot after making the change (config.sys is important -
make a backup before modifying it!)

HTH,

Steve

===
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



Re: errorPage in a multi-frame enviroment.

1999-12-14 Thread Suman Natarajan

Hi,
Thanx for ur instant response .i had changed the properties of md-dos in

windows .The memory it was taking was very less and hence increased the
mem to
2816.
Then the server started working.
Regards,
Suman

===
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



Re: errorPage in a multi-frame enviroment.

1999-12-14 Thread Larry Tate

Suman,

You are running on W-95 or 98 in a DOS window, no?

Easiest solution is to create an shortcut for ms-dos.
Then go to the properties and where the cmd line is
specified, add to the c:\windows\command.com the
switch /E:4096

 c:\windows\command.com /E:4096

this will give your environment 4k of space.  Default I
believe is 256 or 512 bytes.

There is a "shell" command you can put in the config.sys
that will have the same effect, but I don't know the syntax.

Regards,

Larry


--
Larry Tate [EMAIL PROTECTED](757)726-6662
Bldg 135, Ft. Monroe, VA, 23651



-Original Message-
From: Suman Natarajan [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, December 14, 1999 12:48 AM
To: [EMAIL PROTECTED]
Subject: Re: errorPage in a multi-frame enviroment.



Hi,
I had installed jswdk on my pc but when i start the server
it is giving an error "out of environment space".
Well i'am using jsdk but would like to try
jswdk which is giving a problem

I think it is a problem with system resources but i'am unable to figure
out.I have a lot of memory space in my hard disk.
When jsdk is working fine jswdk should also be working fine,right.
Please help,
thanx,
Suman

===
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



Re: Errorpage directive and IPlanet 4.0 SP3

2000-02-10 Thread Robert Young

On Thursday, February 10, 2000 11:50, Sreekumar Pillai [SMTP:[EMAIL PROTECTED]] 
wrote:
> How do you specify the errorpage directive in IPlanet(SP2)? (JSP 0.92). The
> following code snippet doesn't work.
>
> I checked the generated servlet from this JSP before and after adding the
> errorpage directive. I can't see any difference in the generated code. Is it
> a bug with IPlanet? Or Am I doing something silly?
>
>
> <%@ errorpage="testerrorPage.jsp"%>
>
> <%
>// the following line should throw a nullpointer exception.
>if ( request.getParameter("dummyvalue").equals( "dummy" ) )
>{
>}
> %>
> .
>
> testerrorpage.jsp
> ---
<%@ page isErrorPage="true" %>--- THIS
>
> 
>
> 
> An exception has occured.
> The name of the exception is : <%=exception.getMessage() %>
>
> 
>

robert young

===
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



Re: Errorpage directive and IPlanet 4.0 SP3

2000-02-10 Thread Sreekumar Pillai

Well.. You could use JRun with IPlanet for JSP1.0. But you might have to
configure servlets also through JRun if you want to use both Servlets and
JSP in the same application (Sharing the session is a problem). I was
thinking about doing it, but couldn't find any documentation for connecting
JRun with IPlanet. Wisely, decided to go with JSP 0.92.


1. The errorpage directive seem to work when I give relative path. But now I
am faced with the problem of displaying the error.


Errorpage.jsp
-



An exception has occured.
The details: <%=exception.getMessage() %>




This itself throws a nullpointer exception!


If I remove exception.getMessage(), this works fine.



An exception has occured.
The details:






Sree



>From: Naeem Ahmed <[EMAIL PROTECTED]>
>To: Sreekumar Pillai <[EMAIL PROTECTED]>
>CC: [EMAIL PROTECTED]
>Subject: Re: Errorpage directive and IPlanet 4.0 SP3
>Date: Thu, 10 Feb 2000 14:54:28 -0500 (EST)
>
>I don't have an answer for your question, but I've also been facing
>similar problems with IPlanet related to error and exception handling.
>
>Question: Does anyone know how to upgrade IPlanet JSP 0.92 to JSP 1.1 ?
>
>I've been using the JSWDK for development, and my .jsp's seem to work
>there.
>
>
>On Thu, 10 Feb 2000, Sreekumar Pillai wrote:
>
> > How do you specify the errorpage directive in IPlanet(SP2)? (JSP 0.92).
>The
> > following code snippet doesn't work.
> >
> > I checked the generated servlet from this JSP before and after adding
>the
> > errorpage directive. I can't see any difference in the generated code.
>Is it
> > a bug with IPlanet? Or Am I doing something silly?
> >
> >
> > <%@ errorpage="testerrorPage.jsp"%>
> >
> > <%
> >// the following line should throw a nullpointer exception.
> >if ( request.getParameter("dummyvalue").equals( "dummy" ) )
> >{
> >}
> > %>
> > .
> >
> > testerrorpage.jsp
> > ---
> >
> > 
> >
> > 
> > An exception has occured.
> > The name of the exception is : <%=exception.getMessage() %>
> >
> > 
> >
> >
> > __
> > Get Your Private, Free Email at http://www.hotmail.com
> >
> >
>===
> > 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
> >
>

__
Get Your Private, Free Email at http://www.hotmail.com

===
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



Re: Errorpage directive and IPlanet 4.0 SP3

2000-02-15 Thread Sreekumar Pillai

You have to use JSP0.92 syntax.

In the pages, use

<% errorpage="errorpage.jsp" %>

You don't have to do anything in the errorpage itself.

Sree


>From: BIJUNAIRS <[EMAIL PROTECTED]>
>To: "'Sreekumar Pillai'" <[EMAIL PROTECTED]>
>Subject: RE: Errorpage directive and IPlanet 4.0 SP3
>Date: Sat, 12 Feb 2000 14:31:30 +0530
>
>Hi,
>   Where <%@ page isErrorPage="true" %> has to be used? In the error page
>or
>in the original jsp page.
>But if some error occurs it is displayed in the same page as usual. How to
>display errors? If you got any answer send it to me
>---
>Biju Nair
>ITLInfosys
>Ph:8520261 Ext.
>
>   -Original Message-
>   From:   Sreekumar Pillai [mailto:[EMAIL PROTECTED]]
>   Sent:   Thursday, February 10, 2000 8:54 PM
>   To: [EMAIL PROTECTED]
>   Subject:Re: Errorpage directive and IPlanet 4.0 SP3
>
>   Well.. You could use JRun with IPlanet for JSP1.0. But you
>might have to
>   configure servlets also through JRun if you want to use both
>Servlets and
>   JSP in the same application (Sharing the session is a
>problem). I was
>   thinking about doing it, but couldn't find any documentation
>for connecting
>   JRun with IPlanet. Wisely, decided to go with JSP 0.92.
>
>
>   1. The errorpage directive seem to work when I give relative
>path. But now I
>   am faced with the problem of displaying the error.
>
>
>   Errorpage.jsp
>   -
>
>   
>
>   An exception has occured.
>   The details: <%=exception.getMessage() %>
>
>   
>   
>
>   This itself throws a nullpointer exception!
>
>
>   If I remove exception.getMessage(), this works fine.
>
>   
>
>   An exception has occured.
>   The details:
>
>   
>   
>
>
>
>   Sree
>
>
>
>   >From: Naeem Ahmed <[EMAIL PROTECTED]>
>   >To: Sreekumar Pillai <[EMAIL PROTECTED]>
>   >CC: [EMAIL PROTECTED]
>   >Subject: Re: Errorpage directive and IPlanet 4.0 SP3
>   >Date: Thu, 10 Feb 2000 14:54:28 -0500 (EST)
>   >
>   >I don't have an answer for your question, but I've also
>been facing
>   >similar problems with IPlanet related to error and
>exception handling.
>   >
>   >Question: Does anyone know how to upgrade IPlanet JSP 0.92
>to JSP 1.1 ?
>   >
>   >I've been using the JSWDK for development, and my .jsp's
>seem to work
>   >there.
>   >
>   >
>   >On Thu, 10 Feb 2000, Sreekumar Pillai wrote:
>   >
>   > > How do you specify the errorpage directive in
>IPlanet(SP2)? (JSP 0.92).
>   >The
>   > > following code snippet doesn't work.
>   > >
>   > > I checked the generated servlet from this JSP before and
>after adding
>   >the
>   > > errorpage directive. I can't see any difference in the
>generated code.
>   >Is it
>   > > a bug with IPlanet? Or Am I doing something silly?
>   > >
>   > >
>   > > <%@ errorpage="testerrorPage.jsp"%>
>   > >
>   > > <%
>   > >// the following line should throw a nullpointer
>exception.
>   > >if ( request.getParameter("dummyvalue").equals(
>"dummy" ) )
>   > >{
>   > >}
>   > > %>
>   > > .
>   > >
>   > > testerrorpage.jsp
>   > > ---
>   > >
>   > > 
>   > >
>   > > 
>   > > An exception has occured.
>   > > The name of the exception is :
><%=exception.getMessage() %>
>   > >
>   > > 
>   

Re: Errorpage directive and IPlanet 4.0 SP3

2000-02-15 Thread Basvi Ayuluri

Hi,

I thought of sharing this information with you. This is a reply I got for my
similar question some time back from one of the Iplanet developers.

Thanks,

Basvi


===
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
From:   Suresh Batchu [[EMAIL PROTECTED]]
Sent:   Tuesday, January 18, 2000 8:01 PM
To: [EMAIL PROTECTED]
Subject:Re: JSP 1.1 support in iPlanet Web Server, Enterprise
Edition 4.0 SP3

On Wed, 12 Jan 2000, Basvi Ayuluri wrote:

> By default it supports JSP 0.92.
>
> Does anybody know how to run JSP 1.1 in iPlanet Web Server,
> Enterprise Edition 4.0 (netscape server 4.0)?

iPlanet Enterprise Server (iES) 4.0 supports only JSP 0.92. How
ever, we are currently working on iES4.1 which supports JSP1.1.
iES4.1 is going to beta very soon (in few days!).

--
-Suresh
 Developer
 iPlanet Enterprise Server

===

_/\_/\_/\_/\_/\_/\_/\_/\_/\_/\_/\_/\_/\_/\_/\_/\_/\_/\_/\_/\
Basvi Ayuluri  [EMAIL PROTECTED]
Shasta IP services unit,   Tel: 408 855 3901
Nortel NetworksFax: 408 855 3801
Santa Clara, CA
_/\_/\_/\_/\_/\_/\_/\_/\_/\_/\_/\_/\_/\_/\_/\_/\_/\_/\_/\_/\



-Original Message-
From: Naeem Ahmed [mailto:[EMAIL PROTECTED]]
Sent: Thursday, February 10, 2000 11:54 AM
To: [EMAIL PROTECTED]
Subject: Re: Errorpage directive and IPlanet 4.0 SP3


I don't have an answer for your question, but I've also been facing
similar problems with IPlanet related to error and exception handling.

Question: Does anyone know how to upgrade IPlanet JSP 0.92 to JSP 1.1 ?

I've been using the JSWDK for development, and my .jsp's seem to work
there.


On Thu, 10 Feb 2000, Sreekumar Pillai wrote:

> How do you specify the errorpage directive in IPlanet(SP2)? (JSP 0.92).
The
> following code snippet doesn't work.
>
> I checked the generated servlet from this JSP before and after adding the
> errorpage directive. I can't see any difference in the generated code. Is
it
> a bug with IPlanet? Or Am I doing something silly?
>
>
> <%@ errorpage="testerrorPage.jsp"%>
>
> <%
>// the following line should throw a nullpointer exception.
>if ( request.getParameter("dummyvalue").equals( "dummy" ) )
>{
>}
> %>
> .
>
> testerrorpage.jsp
> ---
>
> 
>
> 
> An exception has occured.
> The name of the exception is : <%=exception.getMessage() %>
>
> 
>
>
> __
> Get Your Private, Free Email at http://www.hotmail.com
>
>
===
> 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

===
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



Problem in using the ErrorPage with JSP

2000-07-17 Thread Manoj Kumar

Hi All,
I am making  Login Functionality using the JSP and Beans.I want that
no body can send blank fields,though that can be achieved using java script
but as i am new to JSP , i am much curious to implement the things with JSP.
   I am proceeding like this.
I have made a Custom exception BlankFieldException.and have declared a
ErrorPage in the Page Directive,which is the ErrorHandler for all the Pages
in my application.what it does is that it  just display the ErrorMessages in
more user friendly way.Now the problem is that I have written the statements
like this

<%
if( request.getParameter("username").equals(""))
throw new BlankFieldException();
%>

But i am getting the error that u should either declare that the method
throws a  Exception or you should catch the Error.Now first thing is that i
donot want to catch the Error,because i want that to be done by my
erorhandler which is doing job very well.and second thing is that this code
i can not put inside a method,because then i will not be having the access
to internal objects like here i am using the request object.So please let me
know the way to come out of this problem.

thanks in advance.



Regards
Manoj Kumar.

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets



Help error resolving relative path in 'errorPage'

2000-08-18 Thread Yashwant Balwant

I have question regarding error handling in JSP.
My site say 'Today' has two jsp files under two seperate folders
namely
'News.jsp' under 'News' folder and 'failure.jsp' under 'failure'
folder. As you can see failure is my error page.
Now when an exception occurrs in news.jsp, my error page gets called
but the 'errorPage' attribute of 'page' directive says
"../failure/failure.jsp".
This is where the call fails and WebSphere gives me compilation
error
since it cannot resolve '..' and I don't know how to go up the tree.
Because
of our products structure, the failure page cannot be under same
folder.
Can anyone please tell me how to get thsi path resolved? I wanted to
make
the code neat with error handling... I don't want to use try.catch
everywhere in my jsp code or sendRedirect. As I use beans I don't
have
servlet context in my java code.






Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets



Urgent error resolving relative path in 'errorPage'

2000-08-22 Thread Yashwant Balwant

I have question regarding error handling in JSP.
My site say 'Today' has two jsp files under two seperate folders
namely
'News.jsp' under 'News' folder and 'failure.jsp' under 'failure'
folder. As you can see failure is my error page.
Now when an exception occurrs in news.jsp, my error page gets called
but the 'errorPage' attribute of 'page' directive says
"../failure/failure.jsp".
This is where the call fails and WebSphere gives me compilation
error since it cannot resolve '..' and I don't know how to go up the tree.
Because of our products structure, the failure page cannot be under same
folder.
Can anyone please tell me how to get thsi path resolved? I wanted to
make the code neat with error handling... I don't want to use try.catch
everywhere in my jsp code or sendRedirect. As I use beans I don't
have servlet context in my java code.







Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets



ErrorPage on Include JSPs does not work!!

2000-09-06 Thread Ismael Blesa Part

I have a JSP A that includes a JSP B both with the errorPage set to
receive all the errors. When the exception is throwen in B I get a page
with some content from JSP A and the following exception :

java.lang.IllegalStateException: Cannot forward as
OutputStream or Writer has already been obtained

Do you know how to solve this problem?

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets



errorPage handling when response is already commited

2000-10-05 Thread Shiraz Wasim Zaidi

Section 2.7.1 pg. 47.

Spec says that if autoFlush=true and if the initial content of the jspwriter
has been flushed then any subsequent attempt to dispatch uncaught exception
from
offending page to the errorPage may fail.

Spec is not clear on the dispatch of the uncaught exception to the errorPage
in
the case of response being commited. What does may fail mean?

I think some of the JSP engines are including the response from the
errorPage if the offending
page's reponse is commited and forwarding the request if the offending pages
reponse is not commited.

What should be the consistent behaviour in this case??

-Shiraz

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets



Re: Urgent error resolving relative path in 'errorPage'

2000-08-23 Thread Stephen R

Hi,

You should use a URL relative to the "root" of your application; ie, if your
directory structure is as follows...

application_root/jsp/news/news.jsp
application_root/jsp/failure/failure.jsp
application_root/WEB-INF/classes

In the page diective of news.jsp use

<%@ page session='true' errorPage='/jsp/failure/failure.jsp' %>
  ^^
This '/' will always resolve to the root of your application.
Hope this helps,

Stephen.


Yashwant Balwant wrote:
>
> I have question regarding error handling in JSP.
> My site say 'Today' has two jsp files under two seperate folders
> namely
> 'News.jsp' under 'News' folder and 'failure.jsp' under 'failure'
> folder. As you can see failure is my error page.
> Now when an exception occurrs in news.jsp, my error page gets called
> but the 'errorPage' attribute of 'page' directive says
> "../failure/failure.jsp".
> This is where the call fails and WebSphere gives me compilation
> error since it cannot resolve '..' and I don't know how to go up the tree.
> Because of our products structure, the failure page cannot be under same
> folder.
> Can anyone please tell me how to get thsi path resolved? I wanted to
> make the code neat with error handling... I don't want to use try.catch
> everywhere in my jsp code or sendRedirect. As I use beans I don't
> have servlet context in my java code.
>
> 
> Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com
>
> ===
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.html
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

--
._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._.
 Stephen RedmondLogica (Mobile Networks)
 Tel:   +353-1-8193673  5 Custom House Plaza,
 Fax:   +353-1-8193401  Harbourmaster Place,
 mailto:[EMAIL PROTECTED] Dublin 1,
 http://www.logica.com/telecoms Ireland.
._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._.

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets



Setting of errorPage url on the web-application level?

2001-12-08 Thread ShriKant Vashishtha

Hi,

If we specify the errorpage URL on the web-application level in
WebSphere App-Server, do we have any need to specify the errorPage
directive
on the JSP level.

Can somebody describe the basic flow(propogation) of the errorPage.

Many Thanks,
-ShriKant

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com



problem with catching exceptions from tags on the errorPage

2001-04-26 Thread Steffen Morawietz

hi folks.

i´m using my own taglib for generating dynamic tables. i´m also using the
errorPage-directive on all my pages (works fine).
the tags do all call a method getContent() in their doStartTag-method which
is used to build the html-content-string so when an error (e.g.
database-access) occurs in getContent() it throws a simple exception (incl.
message) which is caught in the doStartTag()-method. in this case i raise a
javax.servlet.jsp.JspTagException with the same message hoping it to be
registered on the page the tags are included in and then of course handled
by my error-page.

  public int doStartTag()
  throws javax.servlet.jsp.JspTagException {
...
try {
  getContent();
} catch (Exception e) {
  throw new javax.servlet.jsp.JspTagException(e.getMessage());
}
return SKIP_BODY;
  }

the error-page looks like this:

  <%@ page import="java.io.*,java.util.*" isErrorPage="true" %>
  
  
  Error
  

  

  Exception: <%= exception %>
  
  Exception-Message:
  
ByteArrayOutputStream ostr = new ByteArrayOutputStream();
exception.printStackTrace(new PrintStream(ostr));
out.print(ostr);
  

  
  

astonishingly the the 3rd page (which contains the tags) outputs all
content until the exception occurred and then just appends the output of
the error page like this:

  
  // normal output until exception occurs goes here...
  ...
  // the tag is called HERE
  
  
  Error
  

  

  Exception: 
  
  Exception-Message:

why isn´t the exception forwarded to the error-page but the error-page
included in the other page instead?

thanx 4 your help in advance!

greetings

steffen

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets



Re: [Re: Errorpage directive and Tomcat]-- Solved the problem

2000-05-17 Thread Mugdha Kulkarni

Ya the problem was really with includes. Thanks a lot !
Mugdha

Robert Nicholson <[EMAIL PROTECTED]> wrote:
Any includes in this page?

- Original Message -
From: "Mugdha Kulkarni" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, May 17, 2000 3:13 AM
Subject: Errorpage directive and Tomcat


> Hi all,
> I have a problem with my JSPs when I am using Tomcat with Apache.
> I get following error while accessing my JSPs. These JSPs work fine with
> Apache-Jserv.
>
> org.apache.jasper.JasperException: Page directive: can't have multiple
> occurrences of errorPage
>
> Actually the page doesn't have errorpage directive in it and still it is
> giving such an error, can anybody please help me ?
>
> Thanks,
> Mugdha
>
>
> 
> Get free email and a permanent address at http://www.netaddress.com/?N=1
>
>
===
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.html
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
>

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets



Get free email and a permanent address at http://www.netaddress.com/?N=1

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets



Re: Setting of errorPage url on the web-application level?

2001-12-14 Thread ShriKant Vashishtha

Hi,

I am sorry as I am repeating my question. So far I haven't got any response
for
the query. Can somebody please advice for the same

-ShriKant

A mailing list about Java Server Pages specification and reference wrote:

> From: ShriKant Vashishtha <[EMAIL PROTECTED]>@JAVA.SUN.COM on
>   12/08/2001 01:42 PM
>
> Please respond to A mailing list about Java Server Pages specification
and
>   reference <[EMAIL PROTECTED]>
>
> To:   [EMAIL PROTECTED]
> cc:
> Subject:  Setting of errorPage url on the web-application level?
>
> Hi,
>
> If we specify the errorpage URL on the web-application level in
> WebSphere App-Server, do we have any need to specify the errorPage
> directive
> on the JSP level.
>
> Can somebody describe the basic flow(propogation) of the errorPage.
>
> Many Thanks,
> -ShriKant
>
>
===
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
> JSP-INTEREST".
> For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
> DIGEST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
>  http://archives.java.sun.com/jsp-interest.html
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.jsp
>  http://www.jguru.com/faq/index.jsp
>  http://www.jspinsider.com

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com



Re: Setting of errorPage url on the web-application level?

2001-12-14 Thread Anthony Tagunov

Hello ShriKant!

> Hi,
> If we specify the errorpage URL on the web-application level in
> WebSphere App-Server, do we have any need to specify the errorPage
> directive
> on the JSP level.

Some of them has the priority, I beleive, the errorPage in the jsp.
That is somewhere in the jsp spec.

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com



problem with catching exceptions from tags on the errorPage SOLVED!

2001-05-02 Thread Steffen Morawietz

hi folks.

thanx for your tips regarding ides. i just wanted to tell you that i
finally found out what the problem was by having a look at the generated
source-code (just in case someone else encounters this problem in
future...):
the value for the autoFlush-attribute in the @page-directive defaults to
"true" so when the exception in my tag occured output had already been sent
and the call of the JspWriter´s clear()-method raised a
java.io.IOException. the servlet 'decided' to include the page instead of
forwarding to it... that´s all!

see generated servlet´s code:

// error-page catch-block:
...
try {
  out.clear();
} catch (Exception __ignore) { // output already sent, too late, include
page instead
  pageContext.include("fehler.jsp");
  return;
}
...

i changed the attribute to autoFlush="false" and now everything works as
intended.

bye



Justin Owens
 Kopie:
Gesendet von: A  Thema:  Re: problem with catching 
exceptions from
    mailing list tags on the errorPage still remains
about Java Server
Pages
specification and
reference



27.04.2001 11:50
Bitte antworten
an A mailing list
about Java Server
Pages
specification and
reference






Guys,

With JRUN, Allaire actually lets developers have it for free.  Yesterday, I
downloaded it and installed it on my server for development.  It is only in
production environments that it requires purchase. Note also, the JRUN
developers edition will only allow three concurrent connections.


Justin

-Original Message-
From: A mailing list about Java Server Pages specification and reference
[mailto:[EMAIL PROTECTED]]On Behalf Of Celeste Haseltine
Sent: Friday, April 27, 2001 4:35 PM
To: [EMAIL PROTECTED]
Subject: Re: problem with catching exceptions from tags on the errorPage
still remains


This is a little off topic, but if you are looking for a good JSP IDE, I
have to recommend JRUN Studio 3.1.  It has an integrated debugger for both
JSP's and Servelets, and it supports several version's of HTML (2.0, 3.0
and
4.0).  It also supports Javascript1.2, ASP, CFML tags, CF Data and Flow
control, DTD Entities and Elements and IFML, RTML, SML1.0, Standard VML,
and
VTML tags.  It's produced by Allaire, and I've used it for about a year,
and
really love it as a JSP/Servelet IDE.
You can download a 30 day trial version off of Allaire's web site.


Celeste
-Original Message-
From: A mailing list about Java Server Pages specification and reference
[mailto:[EMAIL PROTECTED]]On Behalf Of Steffen Morawietz
Sent: Friday, April 27, 2001 8:37 AM
To: [EMAIL PROTECTED]
Subject: problem with catching exceptions from tags on the errorPage
still remains


yeah i´d love to. unfortunately i'm doing this jsp-stuff as a first
approach to jsp in my company so we don´t have the appropriate ide... we
got jbuilder3 - not capable of jsp so i recently rely on notepad(!).
so: if anyone has some experiences with this topic or can show me a better
way of error-handling in this context i´d be very grateful.

have a nice weekend, folks!

steffen



"M. Simms"

antic.net> Kopie:
   Thema:  FW: problem with
catching
exceptions from
26.04.2001 tags on the errorPage
16:59
Bitte antworten
an prosys






Best to apply a JSP source code debugger like Jbuilder4 for this one.it
sounds hairy.

-Original Message-
From: A mailing list about Java Server Pages specification and reference
[mailto:[EMAIL PROTECTED]] On Behalf Of Steffen Morawietz
Sent: Thursday, April 26, 2001 8:18 AM
To: [EMAIL PROTECTED]
Subject: problem with catching exceptions from tags on the errorPage


hi folks.

i´m using my own taglib for generating dynamic tables. i´m also using the
errorPage-directive on all my pages (works fine).
the tags do all call a method getContent() in their doStartTag-method which
is used to build the html-content-string so when an error (e.g.
database-access) occurs in getContent() it throws a simple exception (incl.
message) which is caught in the doStartTag()-method. in this case i raise a
javax.servlet.jsp.JspTagException with the same message hoping it to be
registered on the page the tags are included in and then of course handled
by my error-page.

  public int doStartTag()
  throws javax.servlet.jsp.JspTagException {
...
try {
  getContent();
} catch (Exception e) {
  throw new javax.servlet.jsp.JspTagException(e.getMessa

problem with catching exceptions from tags on the errorPage still remains

2001-04-27 Thread Steffen Morawietz

yeah i´d love to. unfortunately i'm doing this jsp-stuff as a first
approach to jsp in my company so we don´t have the appropriate ide... we
got jbuilder3 - not capable of jsp so i recently rely on notepad(!).
so: if anyone has some experiences with this topic or can show me a better
way of error-handling in this context i´d be very grateful.

have a nice weekend, folks!

steffen



"M. Simms"

antic.net> Kopie:
   Thema:  FW: problem with catching 
exceptions from
26.04.2001     tags on the errorPage
16:59
Bitte antworten
an prosys






Best to apply a JSP source code debugger like Jbuilder4 for this one.it
sounds hairy.

-Original Message-
From: A mailing list about Java Server Pages specification and reference
[mailto:[EMAIL PROTECTED]] On Behalf Of Steffen Morawietz
Sent: Thursday, April 26, 2001 8:18 AM
To: [EMAIL PROTECTED]
Subject: problem with catching exceptions from tags on the errorPage


hi folks.

i´m using my own taglib for generating dynamic tables. i´m also using the
errorPage-directive on all my pages (works fine).
the tags do all call a method getContent() in their doStartTag-method which
is used to build the html-content-string so when an error (e.g.
database-access) occurs in getContent() it throws a simple exception (incl.
message) which is caught in the doStartTag()-method. in this case i raise a
javax.servlet.jsp.JspTagException with the same message hoping it to be
registered on the page the tags are included in and then of course handled
by my error-page.

  public int doStartTag()
  throws javax.servlet.jsp.JspTagException {
...
try {
  getContent();
} catch (Exception e) {
  throw new javax.servlet.jsp.JspTagException(e.getMessage());
}
return SKIP_BODY;
  }

the error-page looks like this:

  <%@ page import="java.io.*,java.util.*" isErrorPage="true" %>
  
  
  Error
  

  

  Exception: <%= exception %>
  
  Exception-Message:
  
ByteArrayOutputStream ostr = new ByteArrayOutputStream();
exception.printStackTrace(new PrintStream(ostr));
out.print(ostr);
  

  
  

astonishingly the the 3rd page (which contains the tags) outputs all
content until the exception occurred and then just appends the output of
the error page like this:

  
  // normal output until exception occurs goes here...
  ...
  // the tag is called HERE
  
  
  Error
  

  

  Exception: 
  
  Exception-Message:

why isn´t the exception forwarded to the error-page but the error-page
included in the other page instead?

thanx 4 your help in advance!

greetings

steffen

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets



Re: problem with catching exceptions from tags on the errorPage SOLVED!

2001-05-02 Thread Celeste Haseltine

Justin,

You bring up and excellent point that many developers often overlook. If you
are getting errors or unusual behaviour in your JSP pages, debugging can
sometimes be as simple as opening up the servelet that your JSP
complier/interpreter has created from your JSP page.  In JRUN Server, you
can find the servelets created from your JSP's in the \JRun\servers\default\default-app\WEB-INF\jsp directory.  The
servelet that JRUN creates is messy, so if you do open it up, using a text
editor such as Multi-Edit or V-Edit will help you view the code in a more
"readable" manner.

I don't know where WebLogic puts the "created" servelets, but some of the
other people on this board can probably direct you to where the created
servlet is "stored".

Celeste

-Original Message-
From: A mailing list about Java Server Pages specification and reference
[mailto:[EMAIL PROTECTED]]On Behalf Of Steffen Morawietz
Sent: Wednesday, May 02, 2001 8:34 AM
To: [EMAIL PROTECTED]
Subject: problem with catching exceptions from tags on the errorPage
SOLVED!


hi folks.

thanx for your tips regarding ides. i just wanted to tell you that i
finally found out what the problem was by having a look at the generated
source-code (just in case someone else encounters this problem in
future...):
the value for the autoFlush-attribute in the @page-directive defaults to
"true" so when the exception in my tag occured output had already been sent
and the call of the JspWriter´s clear()-method raised a
java.io.IOException. the servlet 'decided' to include the page instead of
forwarding to it... that´s all!

see generated servlet´s code:

// error-page catch-block:
...
try {
  out.clear();
} catch (Exception __ignore) { // output already sent, too late, include
page instead
  pageContext.include("fehler.jsp");
  return;
}
...

i changed the attribute to autoFlush="false" and now everything works as
intended.

bye



Justin Owens
 Kopie:
Gesendet von: A  Thema:  Re: problem with
catching exceptions from
mailing list tags on the errorPage still
remains
about Java Server
Pages
specification and
reference



27.04.2001 11:50
Bitte antworten
an A mailing list
about Java Server
Pages
specification and
reference






Guys,

With JRUN, Allaire actually lets developers have it for free.  Yesterday, I
downloaded it and installed it on my server for development.  It is only in
production environments that it requires purchase. Note also, the JRUN
developers edition will only allow three concurrent connections.


Justin

-Original Message-
From: A mailing list about Java Server Pages specification and reference
[mailto:[EMAIL PROTECTED]]On Behalf Of Celeste Haseltine
Sent: Friday, April 27, 2001 4:35 PM
To: [EMAIL PROTECTED]
Subject: Re: problem with catching exceptions from tags on the errorPage
still remains


This is a little off topic, but if you are looking for a good JSP IDE, I
have to recommend JRUN Studio 3.1.  It has an integrated debugger for both
JSP's and Servelets, and it supports several version's of HTML (2.0, 3.0
and
4.0).  It also supports Javascript1.2, ASP, CFML tags, CF Data and Flow
control, DTD Entities and Elements and IFML, RTML, SML1.0, Standard VML,
and
VTML tags.  It's produced by Allaire, and I've used it for about a year,
and
really love it as a JSP/Servelet IDE.
You can download a 30 day trial version off of Allaire's web site.


Celeste
-Original Message-
From: A mailing list about Java Server Pages specification and reference
[mailto:[EMAIL PROTECTED]]On Behalf Of Steffen Morawietz
Sent: Friday, April 27, 2001 8:37 AM
To: [EMAIL PROTECTED]
Subject: problem with catching exceptions from tags on the errorPage
still remains


yeah i´d love to. unfortunately i'm doing this jsp-stuff as a first
approach to jsp in my company so we don´t have the appropriate ide... we
got jbuilder3 - not capable of jsp so i recently rely on notepad(!).
so: if anyone has some experiences with this topic or can show me a better
way of error-handling in this context i´d be very grateful.

have a nice weekend, folks!

steffen



"M. Simms"

antic.net> Kopie:
   Thema:  FW: problem with
catching
exceptions from
26.04.2001 tags on the errorPage
16:59
Bitte antworten
an prosys






Best to apply a JSP source code debugger like Jbuilder4 for this one.it

Re: problem with catching exceptions from tags on the errorPage still remains

2001-04-27 Thread Celeste Haseltine

This is a little off topic, but if you are looking for a good JSP IDE, I
have to recommend JRUN Studio 3.1.  It has an integrated debugger for both
JSP's and Servelets, and it supports several version's of HTML (2.0, 3.0 and
4.0).  It also supports Javascript1.2, ASP, CFML tags, CF Data and Flow
control, DTD Entities and Elements and IFML, RTML, SML1.0, Standard VML, and
VTML tags.  It's produced by Allaire, and I've used it for about a year, and
really love it as a JSP/Servelet IDE.
You can download a 30 day trial version off of Allaire's web site.


Celeste
-Original Message-
From: A mailing list about Java Server Pages specification and reference
[mailto:[EMAIL PROTECTED]]On Behalf Of Steffen Morawietz
Sent: Friday, April 27, 2001 8:37 AM
To: [EMAIL PROTECTED]
Subject: problem with catching exceptions from tags on the errorPage
still remains


yeah i´d love to. unfortunately i'm doing this jsp-stuff as a first
approach to jsp in my company so we don´t have the appropriate ide... we
got jbuilder3 - not capable of jsp so i recently rely on notepad(!).
so: if anyone has some experiences with this topic or can show me a better
way of error-handling in this context i´d be very grateful.

have a nice weekend, folks!

steffen



"M. Simms"

antic.net> Kopie:
   Thema:  FW: problem with catching
exceptions from
26.04.2001 tags on the errorPage
16:59
Bitte antworten
an prosys






Best to apply a JSP source code debugger like Jbuilder4 for this one.it
sounds hairy.

-Original Message-
From: A mailing list about Java Server Pages specification and reference
[mailto:[EMAIL PROTECTED]] On Behalf Of Steffen Morawietz
Sent: Thursday, April 26, 2001 8:18 AM
To: [EMAIL PROTECTED]
Subject: problem with catching exceptions from tags on the errorPage


hi folks.

i´m using my own taglib for generating dynamic tables. i´m also using the
errorPage-directive on all my pages (works fine).
the tags do all call a method getContent() in their doStartTag-method which
is used to build the html-content-string so when an error (e.g.
database-access) occurs in getContent() it throws a simple exception (incl.
message) which is caught in the doStartTag()-method. in this case i raise a
javax.servlet.jsp.JspTagException with the same message hoping it to be
registered on the page the tags are included in and then of course handled
by my error-page.

  public int doStartTag()
  throws javax.servlet.jsp.JspTagException {
...
try {
  getContent();
} catch (Exception e) {
  throw new javax.servlet.jsp.JspTagException(e.getMessage());
}
return SKIP_BODY;
  }

the error-page looks like this:

  <%@ page import="java.io.*,java.util.*" isErrorPage="true" %>
  
  
  Error
  

  

  Exception: <%= exception %>
  
  Exception-Message:
  
ByteArrayOutputStream ostr = new ByteArrayOutputStream();
exception.printStackTrace(new PrintStream(ostr));
out.print(ostr);
  

  
  

astonishingly the the 3rd page (which contains the tags) outputs all
content until the exception occurred and then just appends the output of
the error page like this:

  
  // normal output until exception occurs goes here...
  ...
  // the tag is called HERE
  
  
  Error
  

  

  Exception: 
  
  Exception-Message:

why isn´t the exception forwarded to the error-page but the error-page
included in the other page instead?

thanx 4 your help in advance!

greetings

steffen

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets ca

Re: problem with catching exceptions from tags on the errorPage still remains

2001-04-27 Thread Justin Owens

Guys,

With JRUN, Allaire actually lets developers have it for free.  Yesterday, I
downloaded it and installed it on my server for development.  It is only in
production environments that it requires purchase. Note also, the JRUN
developers edition will only allow three concurrent connections.


Justin

-Original Message-
From: A mailing list about Java Server Pages specification and reference
[mailto:[EMAIL PROTECTED]]On Behalf Of Celeste Haseltine
Sent: Friday, April 27, 2001 4:35 PM
To: [EMAIL PROTECTED]
Subject: Re: problem with catching exceptions from tags on the errorPage
still remains


This is a little off topic, but if you are looking for a good JSP IDE, I
have to recommend JRUN Studio 3.1.  It has an integrated debugger for both
JSP's and Servelets, and it supports several version's of HTML (2.0, 3.0 and
4.0).  It also supports Javascript1.2, ASP, CFML tags, CF Data and Flow
control, DTD Entities and Elements and IFML, RTML, SML1.0, Standard VML, and
VTML tags.  It's produced by Allaire, and I've used it for about a year, and
really love it as a JSP/Servelet IDE.
You can download a 30 day trial version off of Allaire's web site.


Celeste
-Original Message-
From: A mailing list about Java Server Pages specification and reference
[mailto:[EMAIL PROTECTED]]On Behalf Of Steffen Morawietz
Sent: Friday, April 27, 2001 8:37 AM
To: [EMAIL PROTECTED]
Subject: problem with catching exceptions from tags on the errorPage
still remains


yeah i´d love to. unfortunately i'm doing this jsp-stuff as a first
approach to jsp in my company so we don´t have the appropriate ide... we
got jbuilder3 - not capable of jsp so i recently rely on notepad(!).
so: if anyone has some experiences with this topic or can show me a better
way of error-handling in this context i´d be very grateful.

have a nice weekend, folks!

steffen



"M. Simms"

antic.net> Kopie:
   Thema:  FW: problem with catching
exceptions from
26.04.2001 tags on the errorPage
16:59
Bitte antworten
an prosys






Best to apply a JSP source code debugger like Jbuilder4 for this one.it
sounds hairy.

-Original Message-
From: A mailing list about Java Server Pages specification and reference
[mailto:[EMAIL PROTECTED]] On Behalf Of Steffen Morawietz
Sent: Thursday, April 26, 2001 8:18 AM
To: [EMAIL PROTECTED]
Subject: problem with catching exceptions from tags on the errorPage


hi folks.

i´m using my own taglib for generating dynamic tables. i´m also using the
errorPage-directive on all my pages (works fine).
the tags do all call a method getContent() in their doStartTag-method which
is used to build the html-content-string so when an error (e.g.
database-access) occurs in getContent() it throws a simple exception (incl.
message) which is caught in the doStartTag()-method. in this case i raise a
javax.servlet.jsp.JspTagException with the same message hoping it to be
registered on the page the tags are included in and then of course handled
by my error-page.

  public int doStartTag()
  throws javax.servlet.jsp.JspTagException {
...
try {
  getContent();
} catch (Exception e) {
  throw new javax.servlet.jsp.JspTagException(e.getMessage());
}
return SKIP_BODY;
  }

the error-page looks like this:

  <%@ page import="java.io.*,java.util.*" isErrorPage="true" %>
  
  
  Error
  

  

  Exception: <%= exception %>
  
  Exception-Message:
  
ByteArrayOutputStream ostr = new ByteArrayOutputStream();
exception.printStackTrace(new PrintStream(ostr));
out.print(ostr);
  

  
  

astonishingly the the 3rd page (which contains the tags) outputs all
content until the exception occurred and then just appends the output of
the error page like this:

  
  // normal output until exception occurs goes here...
  ...
  // the tag is called HERE
  
  
  Error
  

  

  Exception: 
  
  Exception-Message:

why isn´t the exception forwarded to the error-page but the error-page
included in the other page instead?

thanx 4 your help in advance!

greetings

steffen

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
For digest: mailto [

ERRORPAGE does paint over on the main FRAME - goes to the frame w hich throws exception.

1999-11-16 Thread Rupesh Choubey

I have another error too.I have a lot of frames and the error page which
shows up - shows up only on the frame where the runtime error occured..I
tried hard but couldnt make the error page paint OVER the entire pagei
tried target=_top etc..

Please let me know if you have any ideas.Thanks.
Rupesh.

-Original Message-
From: Rupesh Choubey [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, November 16, 1999 5:38 PM
To: [EMAIL PROTECTED]
Subject: ERRORPAGE does not work on Netscape 4.6x




Hi,

I have ERRORPAGE setup for my JSPsIT works beautifully on I.E.It
does not work on Netscape.It displays the entire tag instead of
redirecting to the errorpage...

EXPERTS  Please help with this issue.Thank you

Rupesh.

===
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



Re: ERRORPAGE does paint over on the main FRAME - goes to the frame w hich throws exception.

1999-11-16 Thread Matthew Lehrian

I just had a similar problem.  After a user's session times out in my app,
it redirects to the login page.  The problem was, if the page was in a
frame, then the login page appeared in the frame, not in the top frame.  So
I used Javascript to do it:

<%
if(somethingbad)
{
String myRedirectURL = "login.jsp";
out.println("top.document.location.href=" +
myRedirectURL + "");
}
%>

Hope this helps.

Matthew

> From: Rupesh Choubey <[EMAIL PROTECTED]>
> Reply-To: Rupesh Choubey <[EMAIL PROTECTED]>
> Date: Tue, 16 Nov 1999 19:50:41 -0600
> To: [EMAIL PROTECTED]
> Subject: ERRORPAGE does paint over on the main FRAME - goes to the frame w
> hich throws exception.
>
> I have another error too.I have a lot of frames and the error page which
> shows up - shows up only on the frame where the runtime error occured..I
> tried hard but couldnt make the error page paint OVER the entire pagei
> tried target=_top etc..
>
> Please let me know if you have any ideas.Thanks.
> Rupesh.
>
> -Original Message-
> From: Rupesh Choubey [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, November 16, 1999 5:38 PM
> To: [EMAIL PROTECTED]
> Subject: ERRORPAGE does not work on Netscape 4.6x
>
>
>
>
> Hi,
>
> I have ERRORPAGE setup for my JSPsIT works beautifully on I.E.It
> does not work on Netscape.It displays the entire tag instead of
> redirecting to the errorpage...
>
> EXPERTS  Please help with this issue.Thank you
>
> Rupesh.
>
> ===
> 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



Re: ERRORPAGE does paint over on the main FRAME - goes to the frame w hich throws exception.

1999-11-17 Thread David Chisholm

The following javascript can be used once on the target page to do the same
thing.  The other has to be used everywhere that you reference the target
page.


  if (top.document.href != self.document.href)
  {
top.document.href = self.document.href;
  }


David


- Original Message -
From: Matthew Lehrian <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, November 16, 1999 9:07 PM
Subject: Re: ERRORPAGE does paint over on the main FRAME - goes to the frame
w hich throws exception.


> I just had a similar problem.  After a user's session times out in my app,
> it redirects to the login page.  The problem was, if the page was in a
> frame, then the login page appeared in the frame, not in the top frame.
So
> I used Javascript to do it:
>
> <%
> if(somethingbad)
> {
> String myRedirectURL = "login.jsp";
> out.println("top.document.location.href=" +
> myRedirectURL + "");
> }
> %>
>
> Hope this helps.
>
> Matthew
>
> > From: Rupesh Choubey <[EMAIL PROTECTED]>
> > Reply-To: Rupesh Choubey <[EMAIL PROTECTED]>
> > Date: Tue, 16 Nov 1999 19:50:41 -0600
> > To: [EMAIL PROTECTED]
> > Subject: ERRORPAGE does paint over on the main FRAME - goes to the frame
w
> > hich throws exception.
> >
> > I have another error too.I have a lot of frames and the error page
which
> > shows up - shows up only on the frame where the runtime error
occured..I
> > tried hard but couldnt make the error page paint OVER the entire
pagei
> > tried target=_top etc..
> >
> > Please let me know if you have any ideas.Thanks.
> > Rupesh.
> >
> > -Original Message-
> > From: Rupesh Choubey [mailto:[EMAIL PROTECTED]]
> > Sent: Tuesday, November 16, 1999 5:38 PM
> > To: [EMAIL PROTECTED]
> > Subject: ERRORPAGE does not work on Netscape 4.6x
> >
> >
> >
> >
> > Hi,
> >
> > I have ERRORPAGE setup for my JSPsIT works beautifully on I.E.It
> > does not work on Netscape.It displays the entire tag instead of
> > redirecting to the errorpage...
> >
> > EXPERTS  Please help with this issue.Thank you
> >
> > Rupesh.
> >
> >
===
> > 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
>

===
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