|
Hi I haven't used freemarker much, but I've used Velocity for several apps and from my own experience and from reading others (noteably http://www.theserverside.com/news/thread.tss?thread_id=38869) I suggest not "wasting" time with supporting Velocity, but instead use the time to support freemarker. As it is though I'm quite satisfied with JSP. And I really like the way you've written your taglibs. It's much better than the standard way of doing components in JSP. I like that the parent is in control of child component rendering. /Jeppe Ray Tsang wrote: hi tim, I wish i could help. But I have not used Freemarker at all. However, to my usage so far, I'm very happy w/ JSP. Have you thought of Velocity though? I read some of your reply regarding that on TSS.ray, On 4/25/06, Tim Fennell <[EMAIL PROTECTED]> wrote:I sent this out yesterday to the dev list. I'm wondering if anyone on this list has Freemarker experience they'd be willing to talk about? -t Begin forwarded message: From: Tim Fennell <[EMAIL PROTECTED]> Date: April 23, 2006 7:48:20 PM EDT To: [email protected] Subject: Freemarker support Hi All, I've been spending some time with Freemarker lately, trying to figure out what some of the best practices are and the best way to use it as a templating language with Stripes. I've run into a few issues with the incomplete JSP 2.0 support in their JSP tag container, but I've submitted changes (they actually gave me commit rights, I can't believe they're that open!), so now all the Stripes tags work swimmingly :) I'm hoping the changes will make it into a point release quite soon because then I can proclame the Stripes+Freemarker works without any problems :) So my question for you all is really two-fold: have you used Freemarker before, and if so how would you like to see it work with Stripes? My initial thought was that it would work using the FreemarkerServlet (or subclass thereof) to make it behave much like JSP does - you can redirect to a view, forward to a view, include a view and so on. In fact I'm almost convinced this is the right way to go. The only thing that gives me pause is that I know the WW folks have a 'FreemarkerResult', that renders a template without going through the whole Servlet container dispatch process. I'm not entirely sure what the benefits of this are (maybe a tiny performance improvement) given the extra code to write and maintain. Also, if anyone here is an experienced FreemarkerUser I'd appreciate your views on the usability of the FreemarkerServlet out of the box. I ran into some problems, and ended up writing a subclass, but I'm also working with the FM guys to add solutions to my issues back into the FM codebase (I'd really rather it be there)... -t |
- [Stripes-dev] Freemarker support Tim Fennell
- [Stripes-dev] Re: [Stripes-users] Fwd: Freemarker suppor... Jeppe Cramon
