Hello,

I have the following custom tag

public class IncludeTag extends TagSupport {

        public int doStartTag() throws JspException {
                
                try {
                        pageContext.getRequest().getRequestDispatcher
("test.html").include(pageContext.getRequest(), pageContext.getResponse());
                } catch (ServletException e) {
                        System.err.println(e.getMessage());
                        e.printStackTrace();
                } catch (IOException e) {
                        System.err.println(e.getMessage());                     
                        e.printStackTrace();                    
                }
                
                return SKIP_BODY;
        }


}

And when I try to run it under tomcat 4.03 I get the following exception

java.lang.IllegalStateException: getOutputStream() has already been called for 
this response
        at org.apache.catalina.connector.ResponseBase.getWriter
(ResponseBase.java:755)
        at org.apache.catalina.connector.ResponseFacade.getWriter
(ResponseFacade.java:165)
        at org.apache.jasper.runtime.JspWriterImpl.initOut
(JspWriterImpl.java:166)
        at org.apache.jasper.runtime.JspWriterImpl.flushBuffer
(JspWriterImpl.java:158)
        at org.apache.jasper.runtime.JspWriterImpl.flush(JspWriterImpl.java:205)
        at org.apache.jasper.runtime.PageContextImpl.release
(PageContextImpl.java:177)
        at org.apache.jasper.runtime.JspFactoryImpl.internalReleasePageContext
(JspFactoryImpl.java:198)
        at org.apache.jasper.runtime.JspFactoryImpl.releasePageContext
(JspFactoryImpl.java:193)
        at org.apache.jsp.test$jsp._jspService(test$jsp.java:88)
        at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)


The exact same tag works wonderfully with resin.
What's wrong??


Thank you

Aur�lien

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to