I'm wondering if the following code should be changed too: This is from ServletTagHandler.java: // load servlet Servlet servlet = context.getServlet(className); if (servlet == null) throw new ClassNotFoundException( "can't find servlet named \"" + className + "\""); // determine if initialization is required if (info.requiresInit() && lastInfo.get(servlet) != info) { servlet.init(info); lastInfo.put(servlet, info); } // there is no defined way to get a STM-servlet to execute // it. The behaviour is undefined if (servlet instanceof SingleThreadModel && servlet instanceof GenericServlet) { ((GenericServlet) servlet).log ("WARNING: its not save to execute " + "SingleThreadModel-servlets with Apache JSSI; see docs"); } // execute servlet servlet.service((ServletRequest) this, (ServletResponse) res); QUESTIONS (when moving to JSDK 2.1 or 2.2...) 1. Shouldn't this servlet use the RequestDispatcher interface to invoke the servlet (specifically, forward() ?). 2. Would using forward() resolve the SingleThreadModel problem? forgive any ignorance in advance... :) Thanks, Kevin Kawamichi Ryoji <[EMAIL PROTECTED]>@list.working-dogs.com> on 10/08/2000 07:49:13 AM Please respond to "Java-Servlets" <[EMAIL PROTECTED]> Sent by: <[EMAIL PROTECTED]> To: Java-Servlets <[EMAIL PROTECTED]> cc: Subject: Re: JSSI & JSDK 2.1 Hello Kevin-san. I wrote a patch to upgrade Apache JSSI from Servlet API 2.0 to 2.2. =================================================================== DelegateHttpServletRequest.diff 401a402,422 > public void setAttribute(java.lang.String s , java.lang.Object o) { > req.setAttribute(s, o); > } > public javax.servlet.http.HttpSession getSession() { > return req.getSession(); > } > public java.util.Enumeration getAttributeNames() { > return req.getAttributeNames(); > } > public boolean isRequestedSessionIdFromURL() { > return req.isRequestedSessionIdFromURL(); > } > public java.util.Enumeration getHeaders(String name) { > return req.getHeaders(name); > } > public boolean isRemoteUserInRole(String role) { > return req.isRemoteUserInRole(role); > } > public String getContextPath() { > return req.getContextPath(); > } =================================================================== PageParserServlet.diff 238c238,239 < String path = req.getPathTranslated(); --- > //String path = req.getPathTranslated(); > String path = getServletContext().getRealPath(req.getServletPath ()); =================================================================== SSIHttpServletResponse.diff 207a208,224 > > public String encodeURL(String url) > { > return res.encodeURL(url); > } > public String encodeRedirectURL(String url) { > return res.encodeRedirectURL(url); > } > public void addDateHeader(String name, long date) { > res.addDateHeader(name, date); > } > public void addHeader(String name, String value) { > res.addHeader(name, value); > } > public void addIntHeader(String name, int value) { > res.addIntHeader(name, value); > } =================================================================== Thanks, Ryoji. [EMAIL PROTECTED] wrote: > > Is there a version of JSSI compatible with JSDK 2.1? Specifically, we're > using WebLogic 5.1... > > Thanks, > Kevin > -- 川道亮治 ([EMAIL PROTECTED]) Do You Extend it!? >>>>> http://www.baykit.org/xi Do You BXS!? >>>>> http://www.baykit.org/bxs ------------------------------------------------------------ To subscribe: [EMAIL PROTECTED] To unsubscribe: [EMAIL PROTECTED] Problems?: [EMAIL PROTECTED] ------------------------------------------------------------ To subscribe: [EMAIL PROTECTED] To unsubscribe: [EMAIL PROTECTED] Problems?: [EMAIL PROTECTED]

Reply via email to