how to find out what variables an expression references?

conrad <[email protected]>
Newsgroups gmane.comp.web.freemarker.user
Message-ID <[email protected]>
Hi,

I'm wondering if anyone can help me with following situation...

I'm trying to figure out how I could parse a freemarker expression in order to
get a list of the variables the expression (or template) references.

I need this because I want to dynamically fetch the referenced variables from a
user interface when the template is rendered.

I tried parsing an expression using the FMParser, but I run into all kinds of
trouble, so this does not seem the appropriate way to go about this.

... anyone know how to handle this?



Thnx,
Conrad.



-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
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.