Return-Path: Mailing-List: contact tomcat-user-help@jakarta.apache.org; run by ezmlm Delivered-To: mailing list tomcat-user@jakarta.apache.org Received: (qmail 87657 invoked from network); 12 Sep 2003 14:08:06 -0000 Received: from unknown (HELO main.gmane.org) (80.91.224.249) by daedalus.apache.org with SMTP; 12 Sep 2003 14:08:06 -0000 Received: from list by main.gmane.org with local (Exim 3.35 #1 (Debian)) id 19xoaf-0001Dk-00 for ; Fri, 12 Sep 2003 16:08:01 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: tomcat-user@jakarta.apache.org Received: from sea.gmane.org ([80.91.224.252]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 19xoae-0001Dc-00 for ; Fri, 12 Sep 2003 16:08:00 +0200 Received: from news by sea.gmane.org with local (Exim 3.35 #1 (Debian)) id 19xoak-00015U-00 for ; Fri, 12 Sep 2003 16:08:06 +0200 From: "Yann C�bron" Subject: TC5: Question about TagPlugins and generated JSP-code Date: Fri, 12 Sep 2003 16:07:57 +0200 Lines: 63 Message-ID: X-Complaints-To: usenet@sea.gmane.org X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1158 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 Sender: news X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Hi, I'm pretty new to this TagPlugins-thing in TC5, but after finding the tagPlugins.xml in CVS I successfully got up. So here's my question: I have this simple Testcase JSP-page: ******************************************** <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %> Case 1 Case 2 ******************************************** Using JSTL1.1 nightly build and the "tagPlugins.xml" from TC CVS, Jasper produces the following code (only relevant parts shown): ******************************************** [...] private org.apache.jasper.runtime.TagHandlerPool _jspx_tagPool_c_choose; private org.apache.jasper.runtime.TagHandlerPool _jspx_tagPool_c_when_test; private org.apache.jasper.runtime.TagHandlerPool _jspx_tagPool_c_otherwise; [...] public void _jspInit() { _jspx_tagPool_c_choose = org.apache.jasper.runtime.TagHandlerPool.getTagHandlerPool(getServletConfig( )); _jspx_tagPool_c_when_test = org.apache.jasper.runtime.TagHandlerPool.getTagHandlerPool(getServletConfig( )); _jspx_tagPool_c_otherwise = org.apache.jasper.runtime.TagHandlerPool.getTagHandlerPool(getServletConfig( )); } public void _jspDestroy() { _jspx_tagPool_c_choose.release(); _jspx_tagPool_c_when_test.release(); _jspx_tagPool_c_otherwise.release(); } ******************************************** Since all - tags used in this page are being replaced by their corresponding TagPlugins to JAVA-code (namely "if () {..} else {..}"), why is a TagHandlerPool instance for all these tags created? Is this a limitation of the current version of Jasper? TIA, Yann