Hi Ɓukasz,

I didn't even know struts supported freemarker. Well, I'll admit I've not used struts in the past 10 years...

So... how do you register the struts tags with freemarker without tiles? I think it should work more or less the same.

Concerning how we do it for tiles: I don't remember how we did back in in tiles 2.2, it's probably similar to 3.0, which is awkwards. For 3.1 I'm reworking it into just registering a variable in freemarker's configuration object:

https://github.com/nlebas/tiles/blob/master/tiles-freemarker/src/main/java/org/apache/tiles/freemarker/TilesFreemarkerServlet.java

Hope this helps,
Nick

On 11/25/2015 06:19 AM, Lukasz Lenart wrote:
Hi,

I'm working on upgrading the Struts Tiles plugin to use the latest
2.2.2 Tiles version (the Struts Tiles 3 plugin will be next :).
Everything almost works but I have one issue I cannot resolve.
Basically I don't know how to add support for Struts tags in
Freemarker templates.

As far I understand, I must somehow register tag directive with
Freemarker but I don't know how to do it with Tiles.

Any hints?


Thanks in advance

Reply via email to