Return-Path: Delivered-To: apmail-xml-cocoon-dev-archive@xml.apache.org Received: (qmail 91494 invoked by uid 500); 16 Nov 2001 20:28:19 -0000 Mailing-List: contact cocoon-dev-help@xml.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: list-post: Reply-To: cocoon-dev@xml.apache.org Delivered-To: mailing list cocoon-dev@xml.apache.org Received: (qmail 91483 invoked from network); 16 Nov 2001 20:28:19 -0000 Date: 16 Nov 2001 20:28:24 -0000 Message-ID: <20011116202824.23228.qmail@nagoya.betaversion.org> From: bugzilla@apache.org To: cocoon-dev@xml.apache.org Cc: Subject: DO NOT REPLY [Bug 4934] New: - JSPReader doesn't work with Resin 2.0.x servlet container X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT . 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