velocity-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Shinobu Kawai <shinobu.ka...@gmail.com>
Subject Re: best practice question
Date Thu, 03 Mar 2005 06:42:40 GMT
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 <shinobu.kawai@gmail.com>

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


Mime
View raw message