Re: Accessing a script file from the ftl file.
Posted by
vijay Si on
Sep 29, 2007; 1:01pm
URL: http://ofbiz.116.s1.nabble.com/Accessing-a-script-file-from-the-ftl-file-tp148618p148620.html
Hi i did some reading on ofbiz and wanted to understand something:
HttpEngine: If i declare it in controller.xml, then how does it get invoked
and also when? (..bit confused)
My requirement is
when the following line is encontered in the .ftl(or may be jsp) file :
<object>
PARAM name="xyz " value="abc.ext&xml_source=sample.jsp"
</object>
the sample.jsp script should run.
While this jsp runs it creates <tags> readable by abc.ext and also has some
scriptlets to generate dynamic data.
I did look at the webtools but did not find much relating to my requirement
(correct me if i am wrong)
Regards
On 9/28/07, BJ Freeman <
[hidden email]> wrote:
>
> look at the webtools export functions.
>
> vijay Si sent the following on 9/27/2007 7:20 AM:
> > Hi,
> >
> > I have this requirement,
> >
> > In one of the .ftl files it is required to invoke a small script that
> would
> > make an xml file for me.
> >
> > It is like
> >
> > <object>
> > <heigth>
> > <width>
> > <param name=" " value="./../../filename.ext?xml_source=script-file">
> >
> > now there are two requirements
> > 1) this script file should be invoked when the line <param name......>
> is
> > parsed and
> > 2) This script file should contain display as well as scripting
> features.(eg
> > jsp or php...or may be something else)
> >
> > So is it possible to invoke this file when the above statement is
> > parsed..........(This file may also querry data base using entity
> > engine..........)?
> > And also is there any way to use existing ofbiz elements(like bsh for
> > scripting) for this requirement.
> >
> > Regards
> >
>