Hi Jonathon,

My constraint is as follows.

I need to have an xml file. This xml file is supposed to have some data that
comes from the database.

The best way to do this is write a .bsh script and the use these results, in
xml file using ${variable}.

However the constraint is that i need to have this xml file as static
...because it is called by other application during runtime. The application
parses the data in xml file and is not able to recognize "${variable}" ...
So a possible solution i am thinking of is to store all the results in an
ftl file just give all the necessary formating to it and then just
<#include> it in my xml file..........so that when the application runs ,
xml files copies all the contents from the ftl file.....and before
application runs ...i need to load my data in the ftl file.

I hope now you get the problem statement better......please suggest me of
any ways to do this or better ideas

Regards

On 8/29/07, Jonathon -- Improov <[EMAIL PROTECTED]> wrote:
>
> Hi Vijay,
>
> What "dynamic data" are you talking about?
>
> You can use bsh scripts to pull in data from database. Is that what you
> mean by "dynamic"?
>
> What do you mean by "xml"?
>
> You can actually use ${ } inside your widget screen definitions. Try
> <label>${someVariable}</label>.
>
> While .ftl files can access static classes to perform some "dynamic data
> retrieval", it is not as
> clean and easy as using .bsh.
>
> In your .bsh, simply do: context.put("someVariable", "Whatever data you
> want to pull in");
>
> Jonathon
>
> vijay Si wrote:
> > Hi,
> >
> > I wanted to load an ftl file just to pull data from the .bsh script
> file.
> > This ftl file will not display anything directly...rather i wanted to
> > <#include> all of it's content {which includes the dynamically pulled
> data
> > from scripts} into an .xml file ....so that my xml file has all the
> static
> > data. I am not able to use dynamic data pulled by xml directly i.ecannot
> > use ${} inside my xml. So i thought of pulling all dynamic stuff into an
> > .ftl file and then <#include> this data in the xml file....
> >
> > Here i am confronted with the problem of loading ftl file just like .bsh
> > file..........so.....can i put .ftl files in <actions></actions> and
> load it
> > in advance. Or please suggest some other way of loading the ftl file
> just
> > for the sake of pulling data from the script.
> >
> > Regards
> >
> >
> >
> > ------------------------------------------------------------------------
> >
> > No virus found in this incoming message.
> > Checked by AVG Free Edition.
> > Version: 7.5.484 / Virus Database: 269.12.10/977 - Release Date:
> 8/28/2007 4:29 PM
>
>

Reply via email to