Can I call sitemesh struts tags from a decorator in freemarker?
- by fool4jesus
I know if you are using JSPs, you can call struts tags defined the normal way from a decorator, like this:
<html>
<body>
<decorator:body />
</body>
</html>
but in the examples I always see using freemarker decorators, they will instead say:
<html>
<body>
${body}
</body>
</html>
Is this the only way to include the pieces of the page from the decorator, or is it possible to use the same taglibs? To test it, I put sitemesh-decorator.tld into WEB-INF/lib and tried just using
<@decorator.body />
but no joy there. I think I'm missing something here, but I'm not sure what it is.