You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@turbine.apache.org by Christian Wolf <ch...@idbsoft.ch> on 2001/03/26 08:07:17 UTC

$link and $link.setPage(MyScreen.vm)

Hi all,

With Velocity, we can use "$link" wich is equal as
"myServer/sevlet/myProject/template/" to set an URL

My question is how can I get the variable "$link" in my java source code ???



---------------------------------------------------------------------
To unsubscribe, e-mail: turbine-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: turbine-user-help@jakarta.apache.org


Re: $link and $link.setPage(MyScreen.vm)

Posted by Jon Stevens <jo...@latchkey.com>.
on 3/25/01 10:07 PM, "Christian Wolf" <ch...@idbsoft.ch> wrote:

> My question is how can I get the variable "$link" in my java source code ???

new TemplateLink()

-jon


---------------------------------------------------------------------
To unsubscribe, e-mail: turbine-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: turbine-user-help@jakarta.apache.org


RE: $link and $link.setPage(MyScreen.vm)

Posted by Russell Edens <ru...@speakeasy.net>.
If you are in a TemplateScreen then you have access to the Context and can
access it directly.
	TemplateLink tl = (TemplateLink)context.get("link");

Anywhere else you can create an instance of the TemplateLink passing RunData.
	TemplateLink tl = new TemplateLink(data);

russell


> -----Original Message-----
> From: Christian Wolf [mailto:christian.wolf@idbsoft.ch]
> Sent: Sunday, March 25, 2001 10:07 PM
> To: turbine-user@jakarta.apache.org
> Subject: $link and $link.setPage(MyScreen.vm)
>
>
> Hi all,
>
> With Velocity, we can use "$link" wich is equal as
> "myServer/sevlet/myProject/template/" to set an URL
>
> My question is how can I get the variable "$link" in my java source code ???
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: turbine-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: turbine-user-help@jakarta.apache.org
>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: turbine-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: turbine-user-help@jakarta.apache.org