Re: how to load TLD with JspTabligs that are packaged within the jar?

Attila Szegedi <[email protected]>
Newsgroups gmane.comp.web.freemarker.user
Message-ID <[email protected]>
What's the FreeMarker version you use? (If you don't know, put $ 
{.version} in one of your templates and see what is printed out).  
There was a bug with referencing taglibs through a public URL; it was  
fixed in 2.3.11.

Attila.

On 2008.04.16., at 19:11, Zemian Deng wrote:
> Hi, Can someone help me here?
>
> On Mon, Apr 14, 2008 at 5:41 PM, Zemian Deng  
> <[email protected]> wrote:
> Hi,
>
> When working with Spring, their spring.jar file included their TLD  
> file, and when used together with JSP, we simply  specify the URI to http://www.springframework.org/tags/form 
>  and it works. But if I replace it in Freemarker template with
> <#assign form=JspTaglibs["http://www.springframework.org/tags/form"]>
> I get bunch of XML parsing error during runtime.
>
> My workaround is to extract the TLD file and place it in WEB-INF  
> folder and then use it like this:
> <#assign form=JspTaglibs["/WEB-INF/resources/spring-form.tld"]>
>
> Is there more elegant way without extracting the TLD file?
>
> -- 
> Thanks,
> Zemian Deng

-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
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.