Re: JspTagLibs - no error but tag is being ignored

Attila Szegedi <[email protected]>
Newsgroups gmane.comp.web.freemarker.user
Message-ID <[email protected]>
Thank you for looking into this -- I was almost ready to start  
debugging the JSP support :-)

Attila.

On 2008.06.02., at 11:11, Daniel Dekany wrote:

> In FreeMarker <authz:authorize ifAllGranted="General"> is plain static
> text, so it is printed to the output as is (it isn't ignored), like
> any other XML or HTML markup. JSP tags are just FreeMarker directives,
> nothing special, so you use the FreeMarker directive call syntax for
> calling them:
>
>  <@authz.authorize ifAllGranted="General">...</@authz.authorize>
>
> Note that in the FreeMarker directive call syntax you don't use ${...}
> as in JSP, and don't quote the parameter values. So you do NOT write:
> <@my.jspTag color="${theColor}" width="100" height=${a+b}  
> name="aStringLiteral">
> but
> <@my.jspTag color=theColor width=100 height=a+b  
> name="aStringLiteral">.
>
>> have this problem with Freemarker. If I am using a JSP everything  
>> works OK.
>> I have tried adding the following to my web.xml:
>>
>> <servlet>
>>        <servlet-name>JspSupportServlet</servlet-name>
>>
>> <servlet-class>org.apache.struts2.views.JspSupportServlet</servlet- 
>> class>
>>        <load-on-startup>1</load-on-startup>
>> </servlet>
>> <listener>
>>
>> <listener-class>freemarker.ext.jsp.EventForwarding</listener-class>
>> </listener>
>>
>> If anyone can give me a hint as to where I am going wrong I would be
>> grateful.
>
> -- 
> Best regards,
> Daniel Dekany






-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.