Hi Matthew,

> I use a Constants class in my application to hold a bunch of strings
> used for things like request attribute keys etc. In my templates, I
> would also like to eliminate the hard-coded strings, and I thought I
> could do that by using the Constants class as a tool.

For the time being, you can try out the FieldMethodizer.
    
http://jakarta.apache.org/velocity/api/org/apache/velocity/app/FieldMethodizer.html

Or the PublicFieldUberspect.
    http://wiki.apache.org/jakarta-velocity/PublicFieldUberspect

Best regards,
-- Shinobu

--
Shinobu Kawai <[EMAIL PROTECTED]>

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to