Hi List,

i googled around but seem to be the only person having this problem.

i want to share a static constant from a java interface in my ftl
templates but can't find a proper way to do this. By proper i mean a
way which is safe for refactors such as renaming of field values etc.

So for example: I have a form in an ftl template. In that form there
is an input field with the name of a request parameter. These request
parameter names are defined in RequestParameters.class.
In jsp i would du something like this:
<%=com.blah.RequestParameters.FIELD_NAME %>.

What to do in Freemarker?

Thanks,
Anton

----------------------------------------------------------------
For list details see
http://www.magnolia-cms.com/home/community/mailing-lists.html
To unsubscribe, E-mail to: <[email protected]>
----------------------------------------------------------------

Reply via email to