I used to use velocity... We switched to Freemarker because we find it better.  Since it supports any JSP tag library out of the box it makes migration from JSP easier.

We find freemarker as fast as velocity (not that I have any direct statistics) ant more flexible.

Cameron

Fred Lamuette wrote:
Yes, it's the same than this at http://displaytag.sourceforge.net.
I use Velocity as template engine, but I'm wondering if Freemark is not a best alternative. Does someone have feedbacks or know the differences ?
Thank you.
Richard.
-----Message d'origine-----
De : [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]De la part de Cameron Braid
Envoyé : jeudi 11 décembre 2003 15:18
À : [EMAIL PROTECTED]
Objet : Re: [OS-webwork] RE: JSP tags in velocity

I may be way off mark here, but is the webwork displaytag the same one at http://displaytag.sourceforge.net/ ?

I havn't used DisplayTag before because I have written my own freemarker macro for displaying tabulated data within webwork, that suits my purposes better.

It should be as simple as adding the taglib to the freemarker view using something like

<#assign display=JspTaglibs["/WEB-INF/displayTag.tld"]>

then you can just use the tage like a macro :

just insert @ before the namespace, and replace the : with a .

<display:table name="someList">
  <display:column property="mail"/>
  <display:column property="total"/>
</display:table>

becomes :

<@display.table name="someList">
  <@display.column property="mail"/>
  <@display.column property="total"/>
<[EMAIL PROTECTED]>

    

Cameron


Fred Lamuette wrote:
Have you any examples with DisplayTag ?
Thank you.
Richard.

-----Message d'origine-----
De : [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]De la part de
Chris Nokleberg
Envoye : jeudi 11 decembre 2003 09:04
A : [EMAIL PROTECTED]
Objet : [OS-webwork] RE: JSP tags in velocity


Patrick Lightbody wrote:
  
Unfortunately, this is one of the problems with the
"use-JSP-tags-in-velocity" deal: in order to _really_ get it to work,
you essentially have to write half a JSP container. Since supporting any
arbitrary tag isn't the goal of WebWork (it's a nice side effect, but
it's not a high priority at all), I think you'd be better off in terms
of functionality and performance if you just added velocity hooks in to
your favorite JSP tags like DisplayTag.
    

FYI FreeMarker has integrated support for JSP taglibs. For information
please see the "Using JSP custom tags in FTL" section of the Manual:

  http://freemarker.org/docs/pgui_misc_servlet.html

Chris




-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive?  Does it
help you create better code?  SHARE THE LOVE, and help us help
YOU!  Click Here: http://sourceforge.net/donate/
_______________________________________________
Opensymphony-webwork mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork


-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive?  Does it
help you create better code?  SHARE THE LOVE, and help us help
YOU!  Click Here: http://sourceforge.net/donate/
_______________________________________________
Opensymphony-webwork mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork

  


-- 
Any damn fool can write code that a computer can understand...
The trick is to write code that humans can understand.
[Martin Fowler http://www.martinfowler.com/distributedComputing/refactoring.pdf]
------------------------------------------------------- This SF.net email is sponsored by: SF.net Giveback Program. Does SourceForge.net help you be more productive? Does it help you create better code? SHARE THE LOVE, and help us help YOU! Click Here: http://sourceforge.net/donate/ _______________________________________________ Opensymphony-webwork mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork


-- 
Any damn fool can write code that a computer can understand...
The trick is to write code that humans can understand.
[Martin Fowler http://www.martinfowler.com/distributedComputing/refactoring.pdf]
------------------------------------------------------- This SF.net email is sponsored by: SF.net Giveback Program. Does SourceForge.net help you be more productive? Does it help you create better code? SHARE THE LOVE, and help us help YOU! Click Here: http://sourceforge.net/donate/ _______________________________________________ Opensymphony-webwork mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork

Reply via email to