see below

>
>I've got following problem with Webwork and Velocity:
>I'm creating a page with top and link navigation and the content. I've got
>the link navigation as template, which is included into the page. Problem is
>when in that template I'll use a VTL variable. Then template is included as
>static text and the variable is not resolved.
>I've tried to execute an action in template but then in result variable I've
>got the action result and not the corresponding template output.
>
>How can I make this work? Is it possible to use an action in template that
>return corresponding template output?

For one, check if you're not using #include instead of parse (#include treats the 
included file as a static text). Other than that it should work fine.

Another thing, you may consider using another Opensymphony project, Sitemesh. It frees 
you from such mundane tasks as having to include laout files in every view. Instead, 
the pages are first generated, and then decorated with appropriate layout.

Grzesiek


-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Opensymphony-webwork mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork

Reply via email to