Return-Path: Delivered-To: apmail-jakarta-tomcat-user-archive@apache.org Received: (qmail 73512 invoked from network); 16 Nov 2001 08:47:36 -0000 Received: from unknown (HELO nagoya.betaversion.org) (192.18.49.131) by daedalus.apache.org with SMTP; 16 Nov 2001 08:47:36 -0000 Received: (qmail 15758 invoked by uid 97); 16 Nov 2001 08:46:58 -0000 Delivered-To: qmlist-jakarta-archive-tomcat-user@jakarta.apache.org Received: (qmail 15710 invoked by uid 97); 16 Nov 2001 08:46:57 -0000 Mailing-List: contact tomcat-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Tomcat Users List" Reply-To: "Tomcat Users List" Delivered-To: mailing list tomcat-user@jakarta.apache.org Received: (qmail 15674 invoked from network); 16 Nov 2001 08:46:57 -0000 Message-ID: <015C3130A304D411AA8900508B8B6F7201198DDB@hot-ex01.hotgen.com> From: Conrad Winchester To: Tomcat Users List Subject: RE: Is Tomcat 4.0.1 taglib integration buggy? Date: Fri, 16 Nov 2001 08:45:45 -0000 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: text/plain; charset="iso-8859-1" X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N I think its because you havent set true which tells JSP that the parameter is specified at run time and not compile time. Conrad -----Original Message----- From: Thomas Rickal, IOP Unternehmensberatung GmbH [mailto:t.rickal@iop.de] Sent: 16 November 2001 08:38 To: 'Tomcat Users List' Subject: Is Tomcat 4.0.1 taglib integration buggy? Hi again, i' am trying to upgrade from Tomcat 3.2.3/ Apache 1.3.19 to Tomcat 4.0.1/ Apache 1.3.19 on Linux. All the urls in the jsps of my application are rewritten by a UrlTag. The UrlTag Class takes the url between the tags and rewrites it if necessary. It works with Tomcat 4.0.1 if the url is placed in the jsp file statically. It works not if the url is get by using the "get"-method of a bean. In Tomcat 3.2.3 it worked fine in both cases. Maybe this is a Tomcat 4.0.1 bug? Who can help? Thomas Example: ### example.jsp ### text ### output Tomcat 3.2.3 (right) ### text ### output Tomcat 4.0.1 (wrong) ### text ### example.tld ### url de.iop.webrun.shared.taglib.UrlTag tagdependent rewrite url ### UrlTag-Code ### import javax.servlet.http.HttpServletResponse; import javax.servlet.jsp.tagext.*; import javax.servlet.jsp.*; import java.io.IOException; public class UrlTag extends BodyTagSupport { public int doAfterBody() throws JspException { BodyContent bodyContent = getBodyContent(); String baseURL = bodyContent.getString(); bodyContent.clearBody(); try { HttpServletResponse response = (HttpServletResponse) pageContext.getResponse(); String encodedURL = response.encodeURL(baseURL); this.getPreviousOut().print(encodedURL); } catch(IOException e) { throw new JspTagException("I/O exception " + e.getMessage()); } return SKIP_BODY; } } -- To unsubscribe: For additional commands: Troubles with the list: -- To unsubscribe: For additional commands: Troubles with the list: