Hi,

I'm trying to implement a common error interface which is a JSP page
with a table that shows the information extracted from the error. I
extended the class Exception to add some extra information as CausedBy,
ProposedSolution, OriginalStackTrace and I pass this information to the
error JSP page using setAttribute, up to this point, everything works
great.
I've been using this page to redirect the exceptions thrown in my
servlets and everything works as expected, as I wait to get the
PrintWriter until no exception can be thrown. However, with JSP pages
the exceptions can be thrown in the middle of  a page so the PrintWriter
has already been used. I read the spec 1.0 carefully and it says that
you can perform a forward request in the middle of a page because the
output is buffered. (JSP 1.0, Section 1.6.5 Redirecting requests).
And now the facts, I've been able to forward a request in the middle of
a page but the previous output that had already been written is appended
to the end of my error page. I suppose that's a bug in JRun Build 151 so
is there anything that I can/must do to avoid that? Is there any
workaround that you know of? I can't get build 152 of JRun as their
servers are still down so...
Thanks in advance.
Dan
PD: Testing environment: W95 + Apache 1.3.6 0 + Jrun Build 151 + JSDK
2.1
-------------------------------------------
Daniel Lopez Janariz ([EMAIL PROTECTED])
Web Services
Computer Center
Balearic Islands University
-------------------------------------------

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

Reply via email to