You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@turbine.apache.org by Eigen Technology Pty Ltd <mi...@eigentechnology.com> on 2003/01/17 04:25:34 UTC
Passing Parameter from Action to .vm file
Dear all,
is it possible to pass parameter from an Action.class to a .vm file? Is
so, how to do it?
regards
michael
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
Re: Passing Parameter from Action to .vm file
Posted by Bert Wendler <be...@confuture.com>.
Hi MIchael
if I get you right - you want to add a certain value to the context of the
template. Maybe you should use the context-Object. This does exactly what one
could guess by the name. If you don't know how to use ist read:
http://jakarta.apache.org/turbine/turbine-2/howto/velocity-site-howto.html
Bye,
Bert.
On Friday 17 January 2003 04:25, Eigen Technology Pty Ltd wrote:
> Dear all,
>
> is it possible to pass parameter from an Action.class to a .vm file? Is
> so, how to do it?
>
> regards
> michael
--
Bert Wendler
confuture Innovationssysteme GmbH
Tel: 0341 / 55 00 89 - 31
Fax: 0341 / 55 00 89 - 90
Gohliser Strasse 8
04105 Leipzig
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
AW: Passing Parameter from Action to .vm file
Posted by Marc Lustig <ma...@marclustig.com>.
put it to the Velocity-context
in your class:
String object = "test";
context.put("var",object);
in your vm-template:
$var
output is:
test
Check the Howto's for details.
Marc
> -----Ursprüngliche Nachricht-----
> Von: Eigen Technology Pty Ltd [mailto:michael@eigentechnology.com]
> Gesendet: Freitag, 17. Januar 2003 04:26
> An: turbine-user@jakarta.apache.org
> Betreff: Passing Parameter from Action to .vm file
>
>
> Dear all,
>
> is it possible to pass parameter from an Action.class to a .vm file? Is
> so, how to do it?
>
> regards
> michael
>
>
>
>
> --
> To unsubscribe, e-mail:
> <ma...@jakarta.apache.org>
> For additional commands, e-mail:
> <ma...@jakarta.apache.org>
>
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>