Re: Use "value" as an attribute name

Erin Drummond <[email protected]>
Newsgroups gmane.comp.web.freemarker.user
Message-ID <[email protected]>
Ok then, try var["value"].value

FreeMarker supports the use of strings as identifiers via square
bracket notation for cases like these when identifiers conflict with
keywords (it also allows you to use a variable, which is impossible if
you're using dot notation).

On Thu, Sep 23, 2010 at 11:01 AM, Upravdom <[email protected]> wrote:
>
> Nope, that doesn't work.
>
> I can access the actual value of "param", of course, like this:
> var.param.value.
> --
> View this message in context: http://freemarker.624813.n4.nabble.com/Use-value-as-an-attribute-name-tp2551194p2551210.html
> Sent from the freemarker-user mailing list archive at Nabble.com.
>
> ------------------------------------------------------------------------------
> Start uncovering the many advantages of virtual appliances
> and start using them to simplify application deployment and
> accelerate your shift to cloud computing.
> http://p.sf.net/sfu/novell-sfdev2dev
> _______________________________________________
> FreeMarker-user mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/freemarker-user
>

------------------------------------------------------------------------------
Start uncovering the many advantages of virtual appliances
and start using them to simplify application deployment and
accelerate your shift to cloud computing.
http://p.sf.net/sfu/novell-sfdev2dev
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.