struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jeromy Evans <jeromy.ev...@blueskyminds.com.au>
Subject Re: Putting Template inside .jar
Date Mon, 03 Mar 2008 02:25:23 GMT
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


Mime
View raw message