DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=4934>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=4934

JSPReader doesn't work with Resin 2.0.x servlet container

           Summary: JSPReader doesn't work with Resin 2.0.x servlet
                    container
           Product: Cocoon 2
           Version: 2.1alpha CVS
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: Critical
          Priority: Other
         Component: core
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


Resin seems to require that the "javax.servlet.include.request_uri" servlet 
parameter be made available, rather than just 
the "javax.servlet.include.servlet_path" that Cocoon currently exposes in 
org.apache.cocoon.components.jsp.JSPEngineImpl.  Resin works after modifying 
JSPEngineImpl's getAttribute() method to check for the "request_uri" attribute 
(as above) and return the corresponding "jspFile" field.  I've included the 
method below, with the public static next to it:

    // Resin needs this to exist before it looks for servlet_path above.
    public static final String INC_REQUEST_URI 
= "javax.servlet.include.request_uri";

    ...

        public Object getAttribute(String s){
            if(s != null) {
              if (s.equals(INC_SERVLET_PATH) /* Also check for request_uri */ 
|| s.equals(INC_REQUEST_URI))
                return jspFile;
            }
            return request.getAttribute(s);
        }

    ...

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

Reply via email to