yeah, getKeys() tells you what is available to the template, not what the template is looking for. To do that, you have to process the template itself. You could use this:
http://svn.apache.org/repos/asf/velocity/engine/trunk/experimental/templatetool/ On 3/6/07, Dave, Tejas <[EMAIL PROTECTED]> wrote:
Hi All, Can someone please tell me how can I get the references from the template? In my application I have to generate XML file for some data and would like my code to be dynamic such that it picks up the references from the Template file and only puts those data values in the context rather then the whole bunch of objects. This would help me such that if I change my template file I would not need to change the code. I saw some method like getKeys() in the Context but really don't know how it works. I tired it but it is not serving the cause. So can someone please help me to get the references from the template Thanks and looking forward to your replies. Tejas --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]