Return-Path: Delivered-To: apmail-jakarta-velocity-user-archive@www.apache.org Received: (qmail 70767 invoked from network); 7 Dec 2004 16:53:08 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 7 Dec 2004 16:53:08 -0000 Received: (qmail 70482 invoked by uid 500); 7 Dec 2004 16:52:24 -0000 Delivered-To: apmail-jakarta-velocity-user-archive@jakarta.apache.org Received: (qmail 70396 invoked by uid 500); 7 Dec 2004 16:52:23 -0000 Mailing-List: contact velocity-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Velocity Users List" Reply-To: "Velocity Users List" Delivered-To: mailing list velocity-user@jakarta.apache.org Received: (qmail 70328 invoked by uid 99); 7 Dec 2004 16:52:21 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: local policy) Received: from omega.siac.com (HELO siac.com) (198.140.63.121) by apache.org (qpsmtpd/0.28) with ESMTP; Tue, 07 Dec 2004 08:52:20 -0800 Received: from ([198.140.63.118]) by omega.siac.com with ESMTP id 134030082.4234785; Tue, 07 Dec 2004 11:51:41 -0500 Received: from milkyway.siac.com (localhost [127.0.0.1]) by spav02.siac.com (8.12.10/8.12.10) with ESMTP id iB7Gpevq029311 for ; Tue, 7 Dec 2004 11:51:40 -0500 (EST) Received: from nsmtp1.nsmtp.siac.com (nsmpt1.nsmtp.siac.com [162.69.3.168] (may be forged)) by milkyway.siac.com (8.11.1 - (Revision 1.4+JAGae91741+JAGae92668)/8.9.3) with ESMTP id iB7Gpev26782 for ; Tue, 7 Dec 2004 11:51:40 -0500 (EST) Subject: Using ClassPathResourceLoader in an app To: velocity-user@jakarta.apache.org X-Mailer: Lotus Notes Release 5.0.11 July 24, 2002 Message-ID: From: Gaurav Gehlot Date: Tue, 7 Dec 2004 11:52:43 -0500 X-MIMETrack: Serialize by Router on NSMTP1/SIAC(Release 6.5.2|June 01, 2004) at 12/07/2004 11:52:37 AM MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Hi, I am trying to use Velocity in an application with ClassPath resource loader. Is the following usage correct to set this loader programatically, Velocity.setProperty(Velocity.RUNTIME_LOG_LOGSYSTEM, new VelocityLogger(LOGGER)); Velocity.setProperty(Velocity.RESOURCE_LOADER, "classpath"); Velocity.setProperty("classpath." + VelocityEngine.RESOURCE_LOADER + ".class", ClasspathResourceLoader.class.getName()); Also, is it possible to cache the templates using ClassPathLoader as can be done with FileResourceLoader using the Velocity.FILE_RESOURCE_LOADER_CACHE property? Thanx gaurav ----------------------------------------- This message and its attachments may contain privileged and confidential information. If you are not the intended recipient(s), you are prohibited from printing, forwarding, saving or copying this email. If you have received this e-mail in error, please immediately notify the sender and delete this e-mail and its attachments from your computer. --------------------------------------------------------------------- To unsubscribe, e-mail: velocity-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: velocity-user-help@jakarta.apache.org