cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 4934] New: - JSPReader doesn't work with Resin 2.0.x servlet container
Date Fri, 16 Nov 2001 20:28:24 GMT
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: cocoon-dev@xml.apache.org
        ReportedBy: ryderblue@yahoo.com


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: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org


Mime
View raw message