Hello again,
I managed to make it work but I am having another problem. I normally
prevent the user from going backward using the following line:
javascript:window.history.forward(1);
Now, it works perfectly with the other page but not with errorPage=true.
Is it Tomcat? or another problem
: HTTP 500 Error occurs whith errorPage directive in Tomcat
5.5.9
Elisabeth,
Could you post a small snippet of your code, then I will try and have a look
at what is going on.
Regards
Jason
--
Jason Bell
Lead Architect, SpikeSource Europe
e: [EMAIL PROTECTED]
w: http://www.spikesource.com
b
Elisabeth,
Could you post a small snippet of your code, then I will try and have a look
at what is going on.
Regards
Jason
--
Jason Bell
Lead Architect, SpikeSource Europe
e: [EMAIL PROTECTED]
w: http://www.spikesource.com
b: http://jasonbell.blog-city.com
m: +44 (0)787 529 2693
---
Hello,
I am using Tomcat 5.5.9 and I have found out that the errorPage directive is
not working.
I always get a HTTP 500 ERROR.
I can solve the problem handling excpetion but I don't want to do it. I want
to use the errorPage.jsp
Looking into Google, I found out the following comment but I
fering and redirection to the errorPage
On Thu, Nov 11, 2004 at 11:28:21AM +1100, Derek Clarkson wrote:
> This sounds like something I have encountered. The basic question is
> that how do you redirect to an error page if youa re writing to the
> output stream rather than going to anoth
On Thu, Nov 11, 2004 at 11:28:21AM +1100, Derek Clarkson wrote:
> This sounds like something I have encountered. The basic question is
> that how do you redirect to an error page if youa re writing to the
> output stream rather than going to another JSP, and have an
> exception ?
I thought I
-8000 x8041
"It's not a bug - it's an undocumented feature!"
-Original Message-
From: Carl Olivier [mailto:[EMAIL PROTECTED]
Sent: Thursday, 11 November 2004 1:09 AM
To: Tomcat Users List
Subject: Buffering and redirection to the errorPage
Greetings.
I have a q
> If an exception is thrown AFTER 8kb has been written (and the
> initial chunks has been committed) then the redirection to the
> errorPage (if specified) does not occur. Does this sound right?
>
That sounds 100% correct.
> Is there anyway to enforce the redirection to the
Greetings.
I have a question with regards buffering of output and subsequent errorPage
redirection. Maybe I am missing something.
The default buffer size for a JSP page response is 8kb. If an exception is
thrown AFTER 8kb has been written (and the initial chunks has been
committed) then the
Hi All,
I am facing a problem as soon as i include jdom.jar (which i have download from
http://www.jdom.org/dist/binary/)
my <%@ page errorPage%> and do not display anything in the browser.Even
though the files pointed by them are getting processed - as i can see that on the
console.
Is
Hi All,
I am facing a problem in Tomcat version 5.0.16.
When I throw an exception in a page then it should be redirected to error.jsp.
The error.jsp is then processed .This i can see in the console.But after that when i
look in the browser the page shown is "HTTP 404 Not Found".
I have checked t
to go to my errorpage. but - how can i get the exception inside
that errorpage? i want to print the error-message from it to the screen.
thanks
yair
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e
ED]
>Subject: errorpage
>
>hey
>If i've defined an error page on my web.xml, and than some page threw
an
>exception, the tomcat is supposed to go to my errorpage. but - how can
i
>get the exception inside that errorpage? i want to print the
error-message
>from it to the
hey
If i've defined an error page on my web.xml, and than some page threw an exception,
the tomcat is supposed to go to my errorpage. but - how can i get the exception inside
that errorpage? i want to print the error-message from it to the screen.
thanks
yair
Absolute paths are relative to the context. Makes it easier to avoid
problems :-)
tim
Reinhard Moosauer wrote:
Hello List,
when using absolute Paths in JSPs errorPage-Directive, I get
unexpected behavior:
A path "/error.jsp" should go to this page:
http://myserver.com/error.jsp
Hello List,
when using absolute Paths in JSPs errorPage-Directive, I get
unexpected behavior:
A path "/error.jsp" should go to this page:
http://myserver.com/error.jsp
At least I did expect this.
Instead, it forwards all errors to:
http://myserver.com/context/error.jsp
This means:
A
Hi.
I have error page defined in my jsp file.
upon getting an error, the error page is successfully
shown.
However, in my jsp file, I have a include directive
for the top menu portion. The error occurs half way
down the page.
When error occurs, the control is redirected to error
page, howe
Hi,
which was the server.xml or apps-??.xml option to set an errorpage i.e.
for page not found errors .. ???
TC 3.3.2
thx
Ihr Support-Team
>>> POWER-NETZ®
Full-Service-Provider <<<
Online-Support:
Support: 0190 - 15 11 15 (EUR 0,62/Min)
http://Support.Power-
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 havin
Is there any way to redirect on exceptions thrown when a page is compiles by
tomcat??
/Peter
> -Original Message-
> From: Ralph Einfeldt [mailto:[EMAIL PROTECTED]]
> Sent: den 5 mars 2002 16:07
> To: Tomcat Users List
> Subject: AW: Using errorPage
>
>
> If
L PROTECTED]]
> Gesendet: Dienstag, 5. März 2002 15:34
> An: 'Tomcat Users List'
> Betreff: Using errorPage
> In my jsp page I create an exception, but I am never
> redirected to my error
> page. Have I forgotten anything? Do I have to set something up in the
>
Yes , I'm throwing an exception. A nullPointerException.
/Peter
> -Original Message-
> From: Randy Layman [mailto:[EMAIL PROTECTED]]
> Sent: den 5 mars 2002 15:13
> To: 'Tomcat Users List'
> Subject: RE: Using errorPage
>
>
>
> I only
Randy
> -Original Message-
> From: Peter Lewandowski [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, March 05, 2002 9:34 AM
> To: 'Tomcat Users List'
> Subject: Using errorPage
>
>
> Hi All...
>
> I'm trying to redirect my jsp pages to a common erro
Hi All...
I'm trying to redirect my jsp pages to a common error page, when ever an
exception is raised, but with no success :(
In my jsp page, I define:
<%@ page errorPage="error.jsp" %>
and in my error page, I've defined (at the very top of the page):
<%@ page isE
On Mon, 4 Feb 2002, Volker Turau wrote:
> Date: Mon, 4 Feb 2002 16:30:12 +0100 (MET)
> From: Volker Turau <[EMAIL PROTECTED]>
> Reply-To: Tomcat Users List <[EMAIL PROTECTED]>
> To: tomcat user-list <[EMAIL PROTECTED]>
> Subject: Errorpage
>
> Hi,
>
Hi,
in my file web.xml I have registered two errorpages:
java.io.IOException
/ausnahmen/ioException.jsp
java.sql.SQLException
/ausnahmen/sqlException.jsp
if I generate an exception of type java.sql.SQLException the
registered errorpage is called. This is no the
Hi,
in section SRV.9.9.2 of the Servlet Spec. Version 2.3 a list of request
attributes is given (e.g. javax.servlet.error.exception). These request
attributes must be set by the container. However using Tomcat 4.0.1 the
attributes are not available for an errorpage specified in the page
Hi,
I am using an error-page withing my web-app. I am using the
page:errorPage="mypage" directive to tell my jsps where the error-page is.
Everything works fine. The errorpage is reached whenever an exception is
raised within a jsp.
But I wonder, how can I determine which jsp caused
if i have a simple jsp below
how do i test it to make sure that the page directive is working?
<%@ page errorPage="/jsp/kp/error.jsp" %>
<%
String value = (String)request.getAttribute("value");
%>
Sample JSP
Sample JSP
<%= value %>
---
On Fri, 14 Sep 2001, KL OOI wrote:
> Date: Fri, 14 Sep 2001 11:01:32 +0800
> From: KL OOI <[EMAIL PROTECTED]>
> Reply-To: [EMAIL PROTECTED], KL OOI <[EMAIL PROTECTED]>
> To: [EMAIL PROTECTED]
> Subject: errorPage
>
> Hi,
>
> Do anyone here know how to use
Hi,
Do anyone here know how to use the following ?
<%@ page errorPage="/jsp/kp/error.jsp?jsp=" + request.getRequestURI() %>
i have put this on top of my JSP page but it seems like not divert me to the
error.jsp.
do i need extra configuration??
any pointer for this??
thanks.
I have set up an Error Page in a file with the following:
<%@ page errorPage="/ErrorPage.jsp" %>
But instead of the html being flushed and then forwarding to the
ErrorPage.jsp, the ErrorPage is tacked onto the bottom of the HTML output
(to that point) and sent to the client
Hi there,
i have defined a servlet context for jsp pages
named /tvs and the location is PATH_TO_LOCATION/tvs. The errorpage is located at
PATH_TO_LOCATION/tvs/errorpage.jsp.
In the jsp pages i want to use that page for error
messages, I said : <% page errorpage="/tvs/errorpage.jsp&
ace of root cause is: <%
e.printStackTrace(new java.io.PrintWriter(out));
%>
Regards
Jan
On Thursday, May 31, 2001 1:21 AM, Edwin Martin [SMTP:[EMAIL PROTECTED]]
wrote:
> I've created an JSP errorPage and now I want to know which
> exception h
I've created an JSP errorPage and now I want to know which
exception has been thrown.
On the errorPage, exception.getClass() only gives
"class org.apache.jasper.JasperException"
I want the "Root cause" exception (as seen without errorPage).
Fortunately, in the jav
OTECTED]]
> Sent: Wednesday, April 25, 2001 6:58 AM
> To: [EMAIL PROTECTED]
> Subject: Sun J2EE RI, JSP, Include, ErrorPage -- cannot use an
> errorpage with dinamically included JSPs
>
>
>
> Hi!
>
> I have a very unnoying problem. In a J2EE application I use a "master JSP"
ons). What JSPs should
be included for a given view is defined for each screen in a configuration
object. Okay, this is quite simple so far, and what is more, it is working
fine.
The problem arises when one decides to add error handling. If you add the
<%@ page errorPage="errorpage.
> I'm getting this jasper-exception from my war:
>
> org.apache.jasper.compiler.ParseException:
> /var/tomcat/webapps/webhelp/example/helpmain.jsp(0,0) Page directive:
> Invalid attribute, errorpage
> at
> org.apache.jasper.compiler.JspUtil.checkAttributes(
Hi
I'm getting this jasper-exception from my war:
org.apache.jasper.compiler.ParseException:
/var/tomcat/webapps/webhelp/example/helpmain.jsp(0,0) Page directive:
Invalid attribute, errorpage
at
org.apache.jasper.compiler.JspUtil.checkAttributes(JspUtil.java)
39 matches
Mail list logo