Hi Leonidas,
You can include shtml or freemarker files using <#include> tag
like this <#include "header.ftl" />
you can also consider templateDir or theme in the include path.
here are few examples
<#include "/${parameters.templateDir}/header.ftl" />
<#include "/${parameters.templateDir}/${parameters.theme}/header.ftl" />
Hope this will help you and I am not too late to reply to your question.:-)
Thanks,
Balaji
Leonidas Papadakis-2 wrote:
>
> Hi there,
>
> i used to have the following scenario in webwork . A file header.shtml
> and footer.shtml . The "shtml" was set as the default velocity
> extension. I used to be able to add the velocity servlet to web.xml (can
> not do now ...) so the file was parsed as velocity. Now :
> 1) direct access to velocity or freemarker files does not parse the
> files but displays them as text
> 2) can not have a <jsp:include page="header.shtml" /> on my jsp result
> file. The header file is not parsed and i am getting wrong output.
>
> So i guess that i have to change everything to jsp, since even if i have
> a freemarker file <jsp:include page="header.ftl" /> this will not be
> parsed ....
>
> I think there should be a way , so that i will not lose the "freedom" of
> webwork ...
>
> I appreciate your replies.
>
> Best Regards
>
> Leonidas
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
--
View this message in context:
http://www.nabble.com/struts2-is-moving-mainly-to-jsp---tf4392855.html#a12749658
Sent from the Struts - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]