Return-Path: Delivered-To: apmail-jakarta-taglibs-dev-archive@jakarta.apache.org Received: (qmail 96094 invoked by uid 500); 12 Apr 2001 09:11:34 -0000 Mailing-List: contact taglibs-dev-help@jakarta.apache.org; run by ezmlm Precedence: bulk Reply-To: taglibs-dev@jakarta.apache.org list-help: list-unsubscribe: list-post: Delivered-To: mailing list taglibs-dev@jakarta.apache.org Received: (qmail 96052 invoked from network); 12 Apr 2001 09:11:32 -0000 Received: from smtp018.mail.yahoo.com (216.136.174.115) by h31.sny.collab.net with SMTP; 12 Apr 2001 09:11:32 -0000 Received: from fw-holborn.citria.com (HELO DO1112) (194.223.227.250) by smtp.mail.vip.sc5.yahoo.com with SMTP; 12 Apr 2001 09:11:56 -0000 X-Apparently-From: Message-ID: <007b01c0c330$9f749c80$1b18000a@citria.com> Reply-To: "James Strachan" From: "James Strachan" To: References: <1651923813868.20010411173630@mindstech.com> Subject: Re: General TAGLIB Question. Date: Thu, 12 Apr 2001 10:11:55 +0100 Organization: MetaStuff Ltd MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4133.2400 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 X-Spam-Rating: h31.sny.collab.net 1.6.2 0/1000/N Hi Dylan From: "Dylan Parker" > I've added functionality to do basic caching of compiled XSL > stylesheets and periodic checks for updates of the XSL files > themselves... and I want to know if there is some easy/conformant way > to have init-time parameters set on a Taglib. You could configure your XSL caching configuration on a per-web-application basis using the ServletContext. It can be configured in a web.xml and your individual tags could access it via the pageContext.getServletContext() method. Here's a sample web.xml - the context-param is an example of configuring your XSL caching... Some WebApp a description goes here myXSLCachingThingy yes index.jsp http://jakarta.apache.org/taglibs/io/1.0 /WEB-INF/io.tld http://www.xtags.org/taglib/1.0 /WEB-INF/xtags.tld _________________________________________________________ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com