Hi Jacques,

I have a requirement wherein i need to  load a page  dynamically.

<OBJECT>
<PARAM name="lyrics" value="song?xml_source=<jsp:include page="data.jsp"/>">

</OBJECT>
Now i can write my HTML Content in a calling jsp and call another jsp inside
it(which provides data for lyrics).

1)Does ftl provide this facility of invoking another ftl page .

2) In the above called  jsp page "data.jsp" i can do database queries using
entity engine.

My problem is that like jsp, ftl template is not pre-processed. With jsp i
get all my contents in jsp-tags processed  1st , so now at the place of
<jsp:include> i have my actual content (which would be static to xml_source,
when it starts processing ) then the HTML processor is invoked.

(xml_source needs to see static content it is not able to see ${highTune}
variable that i write in a ftl . highTune variable was passed from bsh
script)

I am still searching of ways to integrate  it with ofbiz application
..............
Regards



On 10/8/07, Jacques Le Roux <[EMAIL PROTECTED]> wrote:
>
> Why are you using jsp ? Its usage has been deprecated in OFBiz a long time
> ago ? Do you want to reuse existing jsp ?
>
> Jacques
>
> De : "vijay Si" <[EMAIL PROTECTED]>
> > Hi;
> > I want to run a jsp page: Accordingly i map it in controller.xml
> >
> > <!-- View Mappings -->
> >
> > <view-map name="error" type="jsp" page="/error/error.jsp"/>
> >
> > <view-map name="main" type="screen"
> >
> page="component://citizenship/widget/citizenship/GaugeCommonScreens.xml#main"/>
> >
> > <view-map name="login" type="screen"
> >
> page="component://citizenship/widget/citizenship/GaugeCommonScreens.xml#login"/>
> > <view-map name="requirePasswordChange" type="screen"
> >
> page="component://citizenship/widget/citizenship/DialCommonScreens.xml#requirePasswordChange"/>
> >
> >
> > <view-map name="seat" type="jsp" page="/int.jsp"/>
> >
> > Now how do i invoke this page ?
> >
> > Actually i wanted to use bsh for data preparation and then use this
> data, in
> > the invoking jsp. But  bsh scripts are called inside <screens > and i
> have a
> > jsp here.
> >
> > Also can i invoke jsp inside <widgets>
> > or                              <platform-specific>
> >                                         <html><html-template
> > location="component://dial/webapp/dial/track.ftl"/></html>
> >                                 </platform-specific>
> >
> > Regards.
> >
>

Reply via email to