You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@velocity.apache.org by Ervin Loh <er...@po.jaring.my> on 2002/05/24 12:11:09 UTC
Getting attributes declared as public in a class
hello,
i'm currently doing an evaluation of the features in velocity. i'm having problems 'getting attributes declared as public in a class'. for example,
public class CTTokenID {
public static final String USER_ID = "User_ID";
}
suppose now i want to obtain "User_ID". in my vm file, i coded something like:
$CTTokenID.USER_ID // this doesn't work
please do advice me on how i should code this (if velocity has this feature).
regards.