Re: Struts2 + Sitemesh + Freemarker doesn't work

2010-03-19 Thread jonathan doklovic
Thanks, I actually decided to just build it from source should have just done that in the first place. That got everything mostly working, however, I'm also using the struts-osgi plugin and found a bug where the FreemarkerManager (in osgi it's BundleFreemarkerManager) wasn't looking for

Re: Struts2 + Sitemesh + Freemarker doesn't work

2010-03-18 Thread jonathan doklovic
I almost have this working, however, it seems that struts-core-2.2.0-SNAPSHOT depends on xwork-2.2.0-SNAPSHOT which doesn't seem to be available anywhere. Also, the struts-convention-2.2.0-SNAPSHOT tries to call a method in xwork that doesn't exist:

Re: Struts2 + Sitemesh + Freemarker doesn't work

2010-03-18 Thread Wes Wannemacher
On Thu, Mar 18, 2010 at 12:02 PM, jonathan doklovic list-rea...@sysbliss.com wrote: I almost have this working, however, it seems that struts-core-2.2.0-SNAPSHOT depends on xwork-2.2.0-SNAPSHOT which doesn't seem to be available anywhere. It's here -

Re: Struts2 + Sitemesh + Freemarker doesn't work

2010-03-17 Thread jonathan doklovic
Thanks, Are the artifacts in a snapshot repo somewhere, or do i have to manually install them into local? - J Lukasz Lenart wrote: 2010/3/16 jonathan doklovic list-rea...@sysbliss.com: I was able to resolve the issue simply by using the snapshot jar listed on this blog post:

Re: Struts2 + Sitemesh + Freemarker doesn't work

2010-03-17 Thread Lukasz Lenart
2010/3/17 jonathan doklovic list-rea...@sysbliss.com: Are the artifacts in a snapshot repo somewhere, or do i have to manually install them into local? Not yet, I'm working on that ;-) Regards -- Łukasz http://www.lenart.org.pl/ Kapituła Javarsovia 2010 http://javarsovia.pl

Re: Struts2 + Sitemesh + Freemarker doesn't work

2010-03-16 Thread jonathan doklovic
I was able to resolve the issue simply by using the snapshot jar listed on this blog post: http://www.stonescape.net/roller/xtian/date/20091021 My web.xml was correct, just needed the updated sitemesh plugin. jonathan doklovic wrote: It seems that the patch mentioned in WW-3296 would fix my

Re: Struts2 + Sitemesh + Freemarker doesn't work

2010-03-16 Thread Lukasz Lenart
2010/3/16 jonathan doklovic list-rea...@sysbliss.com: I was able to resolve the issue simply by using the snapshot jar listed on this blog post: http://www.stonescape.net/roller/xtian/date/20091021 My web.xml was correct, just needed the updated sitemesh plugin. Here you have the whole build

Struts2 + Sitemesh + Freemarker doesn't work

2010-03-15 Thread jonathan doklovic
I've been working for a week now trying to get Struts2 + Sitemesh + Freemarker to work. I've followed many tutorials and read docs but I still can't get it to work. Basically the decorator runs, but none of the variables get put into scope and so I get literal ${body}, ${title} and ${head}

Re: Struts2 + Sitemesh + Freemarker doesn't work

2010-03-15 Thread Wes Wannemacher
We'll probably need a little more info. In particular, I'd like to know is which versions of struts, sitemesh and freemarker you are using. Also, how do you have the various filters configured in your struts.xml. Also, are you decorating freemarker results with freemarker decorators? -Wes On

Re: Struts2 + Sitemesh + Freemarker doesn't work

2010-03-15 Thread jonathan doklovic
All of the code is listed in the stackoverflow question. I'm using: Struts 2.1.8.1 Struts-Sitemesh Plugin 2.1.8.1 Sitemesh 2.4.2 Freemarker 2.3.15 Currently, I just have a single index.action that returns index.jsp which is decorated with a single main.ftl file. The jsp just has the

Re: Struts2 + Sitemesh + Freemarker doesn't work

2010-03-15 Thread Wes Wannemacher
I am not decorating JSP with freemarker decorators, I am decorating JSP with JSP, but I use the following filter - filter filter-namesitemesh/filter-name filter-classcom.opensymphony.sitemesh.webapp.SiteMeshFilter/filter-class /filter The filter you are using might be

Re: Struts2 + Sitemesh + Freemarker doesn't work

2010-03-15 Thread jonathan doklovic
It seems that the patch mentioned in WW-3296 would fix my problem, however it lists: servlet servlet-namesitemesh-freemarker/servlet-name servlet-classorg.apache.struts2.sitemesh.FreemarkerDecoratorServlet/servlet-class init-param