You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@velocity.apache.org by Julian Morrison <ju...@extropy.demon.co.uk> on 2004/06/24 02:04:41 UTC
#parse and #set
Items added to the context with #set() seem not be used inside #parse()
- is there a way around this, without having to put them in the context
from the actual java code?
I want this so I can #parse() the page header and #set() the page's
title to be used therein.
---------------------------------------------------------------------
To unsubscribe, e-mail: velocity-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: velocity-user-help@jakarta.apache.org
Re: #parse and #set
Posted by Julian Morrison <ju...@extropy.demon.co.uk>.
Will Glass-Husain wrote:
>Works for me.
>
Eh?
*looks again*
And now it works. Odd. Thanks.
---------------------------------------------------------------------
To unsubscribe, e-mail: velocity-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: velocity-user-help@jakarta.apache.org
Re: #parse and #set
Posted by Will Glass-Husain <wg...@forio.com>.
Works for me.
main.htm:
#set ($a = 1)
first file: $a <BR>
#parse("inset.htm")
inset.htm:
second file: $a
Processing main.htm I get
first file: 1
second file: 1
Try again.
WILL
----- Original Message -----
From: "Julian Morrison" <ju...@extropy.demon.co.uk>
To: <ve...@jakarta.apache.org>
Sent: Wednesday, June 23, 2004 5:04 PM
Subject: #parse and #set
> Items added to the context with #set() seem not be used inside #parse()
> - is there a way around this, without having to put them in the context
> from the actual java code?
>
> I want this so I can #parse() the page header and #set() the page's
> title to be used therein.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: velocity-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: velocity-user-help@jakarta.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: velocity-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: velocity-user-help@jakarta.apache.org