You are viewing a plain text version of this content. The canonical link for it is here.
Posted to taglibs-user@tomcat.apache.org by "EXT-Xie, Jialong X" <Ji...@PSS.Boeing.com> on 2000/12/15 17:19:57 UTC

JRuntags on Tomcat

I'd like to get JRuntags work on Tomcat server but so far without any luck. Is anyone who get them worked ? Could you please give me some thoughts? Thanks.

James



-----Original Message-----
From: Stefan Håkans [mailto:stefan.hakans@ibfs.com]
Sent: Friday, December 15, 2000 7:25 AM
To: taglibs-user@jakarta.apache.org
Subject: RE: JspWriter problems


I'm not flushing. I'm trying to throw a new JspException but instead of
going to the errorpage the IllegalStateException occurs.

Stefan

-----Original Message-----
From: chris [mailto:chris]On Behalf Of Chris Widhelm
Sent: den 15 december 2000 16:09
To: taglibs-user@jakarta.apache.org
Subject: Re: JspWriter problems


Stefan,

Are you flushing any of your response outputs?

You will get the IllegalStateException if you are doing that and then
trying to access the response to do something like a forward.

Chris

Stefan Håkans wrote:
>
> Hello!
> I get this exception's stacktrace output by Tomcat3.1 on my page
>
> "java.lang.IllegalStateException: Cannot forward as OutputStream or Writer
> has already been obtained."
>
> why is that?!
> I have several custom tags on the page.
> some are extending BodyTagSupport and some are implementing Tag
>
> The bodytags use this to output:
>         bodyContent.writeOut(bodyContent.getEnclosingWriter());
>
> and the non bodytags use:
>         JspWriter out = pageContext.getOut();
>         out.write("...");
>
> /Stefan
>
> Stefan Håkans
> I n t e r b i z z   S c a n d i n a v i a  a b
> mailto:stefan.hakans@interbizz.se
> http://www.interbizz.com