Re: how to load TLD with JspTabligs that are packaged within the jar?
"Zemian Deng" <[email protected]>
| Newsgroups | gmane.comp.web.freemarker.user |
|---|---|
| Message-ID | <[email protected]> |
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 -- 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 _______________________________________________ FreeMarker-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/freemarker-user