OK.. I have comitted freemarker support into the repository and have
hacked together some docs at

http://wiki.opensymphony.com/space/WebWorkFreemarkerSupport


Basically... Configure the servlet and use the dispatcher result type.

Your action properties are resolved like you are in a velocity template.

I.e if you have 

TestAction.getName()

In FTL use :

<p>Hello ${name}</p>



> -----Original Message-----
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On 
> Behalf Of Cameron Braid
> Sent: Wednesday, 1 October 2003 2:12 AM
> To: [EMAIL PROTECTED]
> Subject: RE: [OS-webwork] Freemarker Views
> 
> 
> I have been finished with the code for a little while.  I 
> havn't written a complete test suite for freemarker, which I 
> was planning on doing before checking in.  I have manually 
> tested the Freemarker support - since I use it in apps that I 
> am working on.
> 
> I will see if I can commit it tomorrow (10 hrs from now) 
> without the unit tests, and i'll get the tests done asap.
> 
> Cheers.
> 
> Cameron
> 
> > -----Original Message-----
> > From: [EMAIL PROTECTED]
> > [mailto:[EMAIL PROTECTED] On 
> > Behalf Of Christian Meunier
> > Sent: Tuesday, 30 September 2003 9:47 PM
> > To: [EMAIL PROTECTED]
> > Subject: Re: [OS-webwork] Freemarker Views
> > 
> > 
> > Jason Carreira wrote:
> > 
> > >>-----Original Message-----
> > >>From: Cameron Braid [mailto:[EMAIL PROTECTED]
> > >>Sent: Monday, August 25, 2003 11:06 PM
> > >>To: [EMAIL PROTECTED]
> > >>Subject: RE: [OS-webwork] Freemarker Views
> > >>
> > >>
> > >>Shall I add it to the CVS repository at java.net then ?
> > >>    
> > >>
> > >
> > >Yes
> > >
> > >  
> > >
> > >>If so should I put, source in 
> > >>com.opensymphony.webwork.views.freemarker,
> > >>and lib in /lib/core ?
> > >>    
> > >>
> > >
> > >Yes, and lib/build I think
> > >
> > >  
> > >
> > >>Also.. I am not sure what is ggoing on with CVS.. Are we still 
> > >>comitting to SourceForge ?
> > >>
> > >>    
> > >>
> > >
> > >Nope, just java.net
> > >
> > >  
> > >
> > >>-----Original Message-----
> > >>From: [EMAIL PROTECTED]
> > >>[mailto:[EMAIL PROTECTED] 
> On Behalf 
> > >>Of Pat Lightbody
> > >>Sent: Tuesday, 26 August 2003 11:41 AM
> > >>To: [EMAIL PROTECTED]
> > >>Subject: Re: [OS-webwork] Freemarker Views
> > >>
> > >>
> > >>I see no reason why this couldn't be included in webwork directly 
> > >>(and not webwork-extensions). Since it wouldn't be 
> required to run 
> > >>unless you _wanted_ to use it, and it's a view technology just as 
> > >>XSLT and others are, I think it should be included. 
> Please go ahead 
> > >>and create a jira issue if you haven't already and we'll 
> get to it.
> > >>
> > >>-Pat
> > >>
> > >>----- Original Message -----
> > >>From: "Cameron Braid" <[EMAIL PROTECTED]>
> > >>To: <[EMAIL PROTECTED]>
> > >>Sent: Monday, August 25, 2003 5:30 AM
> > >>Subject: [OS-webwork] Freemarker Views
> > >>
> > >>
> > >>    
> > >>
> > >>>I built an extension to the Freemarker servlet to provide
> > >>>      
> > >>>
> > >>transparent
> > >>    
> > >>
> > >>>value stack access.
> > >>>
> > >>>The reason that I have taken this approach instead of creating a
> > >>>custom result type is that I wanted to keep all of the
> > >>>      
> > >>>
> > >>features of the
> > >>
> > >>    
> > >>
> > >>>freemarker servlet (JSP tag support etc..) without 
> reproducing too
> > >>>much code, and with minimal effort (KISS)  Plus, I 
> didn't see the 
> > >>>problem with single request dispatcher forward.
> > >>>
> > >>>I want to contribute this code back to the community.
> > >>>
> > >>>The guys from the Freemarker project would prefer that this
> > >>>integration code be kept under the webwork hood.
> > >>>
> > >>>The only change would be a compile time dependancy on a
> > >>>      
> > >>>
> > >>single jar ..
> > >>    
> > >>
> > >>>though it is 750k.
> > >>>
> > >>>Another posibility would be a new java.net project
> > >>>      
> > >>>
> > >>webwork-extensions.
> > >>
> > >>    
> > >>
> > >>>To contain this, and any other extensions that anyone else
> > wants to
> > >>>contribute.
> > >>>
> > >>>What are your thoughts ?
> > >>>
> > >>>Cameron.
> > >>>
> > >>>      
> > >>>
> > >>-------------------------------------------------------
> > >>This SF.net email is sponsored by: VM Ware
> > >>With VMware you can run multiple operating systems on a single 
> > >>machine. WITHOUT REBOOTING! Mix Linux / Windows / Novell virtual 
> > >>machines at the same time. Free trial click 
> > >>here:http://www.vmware.com/wl/offer/358/0
> > >>_______________________________________________
> > >>Opensymphony-webwork mailing list
> > >>[EMAIL PROTECTED]
> > >>https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork
> > >>
> > >>
> > >>
> > >>
> > >>
> > >>-------------------------------------------------------
> > >>This SF.net email is sponsored by: VM Ware
> > >>With VMware you can run multiple operating systems on a single 
> > >>machine. WITHOUT REBOOTING! Mix Linux / Windows / Novell virtual 
> > >>machines at the same time. Free trial click 
> > >>here:http://www.vmware.com/wl/offer/358/0
> > >>_______________________________________________
> > >>Opensymphony-webwork mailing list
> > >>[EMAIL PROTECTED]
> > >>https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork
> > >>
> > >>    
> > >>
> > >
> > >
> > >-------------------------------------------------------
> > >This SF.net email is sponsored by: VM Ware
> > >With VMware you can run multiple operating systems on a
> > single machine.
> > >WITHOUT REBOOTING! Mix Linux / Windows / Novell virtual
> > machines at the
> > >same time. Free trial click 
> here:http://www.vmware.com/wl/offer/358/0
> > >_______________________________________________
> > >Opensymphony-webwork mailing list
> > >[EMAIL PROTECTED]
> > >https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork
> > >
> > >
> > >  
> > >
> > Cameron, any idea when you will be able to commit it to cvs please ?
> > 
> > Regards
> > Christian Meunier
> > 
> > 
> > 
> > 
> > -------------------------------------------------------
> > This sf.net email is sponsored by:ThinkGeek
> > Welcome to geek heaven.
> > http://thinkgeek.com/sf
> > _______________________________________________
> > Opensymphony-webwork mailing list 
> > [EMAIL PROTECTED]
> > https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork
> > 
> > 
> 
> 
> 
> 
> -------------------------------------------------------
> This sf.net email is sponsored by:ThinkGeek
> Welcome to geek heaven.
> http://thinkgeek.com/sf 
> _______________________________________________
> Opensymphony-webwork mailing list 
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork
> 




-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Opensymphony-webwork mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork

Reply via email to