RE: [Q] Enable Freemarker template caching

2010-02-16 Thread Hoying, Ken
[mailto:oscar.kalde...@gmail.com] Sent: Monday, February 15, 2010 11:53 PM To: Struts Users Mailing List Subject: Re: [Q] Enable Freemarker template caching Hi to all, i have a doubt about struts 2. Is possible to write ognl expressions on struts.xml . Let's say, something like wildcard

Re: [Q] Enable Freemarker template caching

2010-02-15 Thread Oscar
Hi to all, i have a doubt about struts 2. Is possible to write ognl expressions on struts.xml . Let's say, something like wildcards but instead wildcards build the value of result with some attribute from request or a value of session, that's possible? THanks in regard -- Oscar

Re: [Q] Enable Freemarker template caching

2010-02-15 Thread Wes Wannemacher
If you are using struts 2.0.9 or earlier, then you will have to copy the template directory out of the struts2-core jar file into your web-app. (Off the top of my head, I can't remember if you copy it to context-root, context-root/WEB-INF, context-root/WEB-INF/classes, but I'm sure that's in the do

Re: [Q] Enable Freemarker template caching

2010-02-15 Thread Dale Newfield
Hoying, Ken wrote: In Struts versions prior to 2.0.10, you had to copy the /template directory from the Struts 2 jar in your WEB_APP root to utilize Freemarker's built in chaching mechanism in order to achieve similar results. And I think as a result of following this old advice I've now got ol

[Q] Enable Freemarker template caching

2010-02-15 Thread Hoying, Ken
I am finding the text regarding the enablement of Freemarker template caching in the performance tuning document (http://struts.apache.org/2.1.8.1/docs/performance-tuning.html) to be a bit confusing. The document states: As of Struts 2.0.10, setting the property struts.freemarker.templatesCach