Return-Path: Delivered-To: apmail-struts-user-archive@www.apache.org Received: (qmail 98439 invoked from network); 3 Mar 2008 02:26:10 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 3 Mar 2008 02:26:10 -0000 Received: (qmail 85659 invoked by uid 500); 3 Mar 2008 02:25:57 -0000 Delivered-To: apmail-struts-user-archive@struts.apache.org Received: (qmail 85630 invoked by uid 500); 3 Mar 2008 02:25:57 -0000 Mailing-List: contact user-help@struts.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Struts Users Mailing List" Reply-To: "Struts Users Mailing List" Delivered-To: mailing list user@struts.apache.org Received: (qmail 85619 invoked by uid 99); 3 Mar 2008 02:25:57 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 02 Mar 2008 18:25:57 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [220.233.0.38] (HELO panama.exetel.com.au) (220.233.0.38) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 03 Mar 2008 02:25:20 +0000 Received: from ns1.exetel.com.au ([220.233.0.1] helo=ef.exetel.com.au) by panama.exetel.com.au with smtp (Exim 4.68) (envelope-from ) id 1JW0Mr-0004Wx-29 for user@struts.apache.org; Mon, 03 Mar 2008 13:25:29 +1100 Received: (qmail 2542 invoked by uid 508); 3 Mar 2008 02:25:28 -0000 Received: from blueskyminds.com.au (HELO ?192.168.1.151?) (jeromy.evans@blueskyminds.com.au@220.233.11.162) by ef.exetel.com.au with SMTP; 3 Mar 2008 02:25:28 -0000 Message-ID: <47CB6193.6090000@blueskyminds.com.au> Date: Mon, 03 Mar 2008 13:25:23 +1100 From: Jeromy Evans Organization: Blue Sky Minds Pty Ltd User-Agent: Thunderbird 2.0.0.12 (Windows/20080213) MIME-Version: 1.0 To: Struts Users Mailing List Subject: Re: Putting Template inside .jar References: <3a71add70803021539k7a29c700u8b837023dca7ebbd@mail.gmail.com> <47CB46A7.7000801@blueskyminds.com.au> <3a71add70803021632r3e2c0a8fl9fd2a0f15c400ecd@mail.gmail.com> <47CB4C40.2000709@blueskyminds.com.au> <3a71add70803021709l3a042762l1b649f35b2a5201e@mail.gmail.com> <3a71add70803021717g73c9bd7csd326086057ac4441@mail.gmail.com> <47CB55B4.60405@blueskyminds.com.au> <3a71add70803021738k16622d29n614cb2481724bfb0@mail.gmail.com> <47CB5ADC.2070207@blueskyminds.com.au> <3a71add70803021803s9ae194ana25e7762ebc5cad0@mail.gmail.com> In-Reply-To: <3a71add70803021803s9ae194ana25e7762ebc5cad0@mail.gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Frans Thamura wrote: >> It looks like the templatePath init param is used only by the >> FileTemplateLoader though. (I've never needed to use that param) >> >> The classpath loader uses >> Thread.currentThread().getContextClassLoader().getResource(resourceName); >> (and a few other variations if unsuccessful) >> >> > > i am try to develop a small code and hope can answer this :) > > still blank about how the template in classpath work :) > > new world > > Have a look at org.apache.struts2.views.freemarker.StrutsClassTemplateLoader and com.opensymphony.xwork2.util.ClassLoaderUtil --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@struts.apache.org For additional commands, e-mail: user-help@struts.apache.org