Java constants in Freemarker template

Sunil <[email protected]>
Newsgroups gmane.comp.web.freemarker.user
Message-ID <[email protected]>
Hi,
Iam developing a portlet application in which Freemarker templates we are 
using for View.

Iam trying to use the constants present in Java class file in the freemarker 
templates. I have the read the posts which says that we can use java constants 
in the Freemarker templates by using the following commands.

${stack.findValue("@fully.classified.classname@constantName")}

But, When Iam trying to access the constants in my template file using the 
above command, Iam getting the below freemarker exception.

freemarker.core.InvalidReferenceException: Expression stack in undefined.

can any one please let me know whats wrong here and how can we access 
constants present in Java class/Interface file in the Freemarker template file.

Thanks,
Sunil.




-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
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.