Hello there,

I got to the point where to run C1.8.3-dev under T4 with some minor changes (it will 
run fine without these, but exceptions are thrown when 

request.getRequestDispatcher("foo.xml").forward(request, response)

is called from an xsp. This is due to the change from the Servlet 2.2 spec of T3.x to 
the Servlet 2.3 spec of the T4.x adheres to. When you compile the checkout of C1.8 
currently in CVS, the Servlet 2.2 jar is checked out. 

To make this functional:
1.) replace servlet_2_2.jar with servlet_2_3.jar (get it from 
http://java.sun.com/products/servlet/download.html or use compiled attached)

2.) add method to org.apache.cocoon.response.HttpServletResponseFacade (attached)

<code>

  public void resetBuffer() {
    r.resetBuffer();
  }

</code>

3.) add methods to org.apache.cocoon.EngineWrapper (attached) :

        a.) Inner Class: org.apache.cocoon.EngineWrapper.HttpServletRequestImpl

<code>
        public StringBuffer getRequestURL() { return null; }
        public void setCharacterEncoding(String env) { };
        public Map getParameterMap() { return null; }
</code>
        b.) Inner Class: org.apache.cocoon.EngineWrapper.HttpServletResponseImpl

<code>
          public void resetBuffer() { }
</code>

Hope this helps,
Georg von Sperling
MedAptus, Inc.
http://www.medaptus.com
mailto:[EMAIL PROTECTED]

Attachment: servlet_2_3.jar
Description: servlet_2_3.jar

Attachment: EngineWrapper.java
Description: EngineWrapper.java

Attachment: HttpServletResponseFacade.java
Description: HttpServletResponseFacade.java

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]

Reply via email to