Freemarker does not accept nested jsp tag.

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Freemarker does not accept nested jsp tag.

Chatree Srichart
I use jsp tag in ftl file like this.

<#assign birt = JspTaglibs["/WEB-INF/birt.tld"]/>
<@birt.viewer id="birtViewer"
    reportDesign="component://birt/webapp/birt/report/product.rptdesign"
    baseURL="/birt"
    height="700"
    width="900"
    format="html"
    showParameterPage="false">
        <@birt.param name="companyName" value="AntWebsystems"></@>
 </@>

It not work because <@birt.param/> tag be ignored.

When I use in jsp like this ...

<%@ taglib uri="/WEB-INF/birt.tld" prefix="birt" %>
<birt:viewer id="birtViewer"
    reportDesign="component://birt/webapp/birt/report/product.rptdesign"
    baseURL="/birt"
    height="700"
    width="900"
    format="html"
    showParameterPage="false">
        <birt:param name="companyName" value="AntWebsystems"></birt:param>
</birt:viewer>

It work fine.

Can any body help me?

Thank you...
Reply | Threaded
Open this post in threaded view
|

Re: Freemarker does not accept nested jsp tag.

Adrian Crum-2
I'm not 100% certain, but it might be that Freemarker considers <@birt... to be a transform.

-Adrian

--- On Sun, 11/15/09, Chatree Srichart <[hidden email]> wrote:

> From: Chatree Srichart <[hidden email]>
> Subject: Freemarker does not accept nested jsp tag.
> To: [hidden email]
> Date: Sunday, November 15, 2009, 7:36 AM
> I use jsp tag in ftl file like this.
>
> <#assign birt = JspTaglibs["/WEB-INF/birt.tld"]/>
> <@birt.viewer id="birtViewer"
>    
> reportDesign="component://birt/webapp/birt/report/product.rptdesign"
>     baseURL="/birt"
>     height="700"
>     width="900"
>     format="html"
>     showParameterPage="false">
>         <@birt.param
> name="companyName" value="AntWebsystems"></@>
>  </@>
>
> It not work because <@birt.param/> tag be ignored.
>
> When I use in jsp like this ...
>
> <%@ taglib uri="/WEB-INF/birt.tld" prefix="birt" %>
> <birt:viewer id="birtViewer"
>    
> reportDesign="component://birt/webapp/birt/report/product.rptdesign"
>     baseURL="/birt"
>     height="700"
>     width="900"
>     format="html"
>     showParameterPage="false">
>         <birt:param
> name="companyName"
> value="AntWebsystems"></birt:param>
> </birt:viewer>
>
> It work fine.
>
> Can any body help me?
>
> Thank you...
>


 
Reply | Threaded
Open this post in threaded view
|

Re: Freemarker does not accept nested jsp tag.

Chatree Srichart
Hello, Adrian Crum

How could I fix it?

Thank you.