You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by "Met @ Uber" <me...@uberstats.com> on 2003/05/30 23:19:13 UTC
Struts & Velocity
Could anyone point me towards some good resources on using struts and
velocity together? I get the general idea, it replaces JSP, but how do
I set it up within my struts actions (and anywhere else needed for use
within struts)?
Thanks in advance,
~ Matthew
--
Met @ Uber <me...@uberstats.com>
Uberstats
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org
Re: Struts & Velocity
Posted by Ted Husted <hu...@apache.org>.
Unfortunately, the best stuff is still hidden in the Velocity CVS, and
you need to check out the velocity-tools CVS to get it.
http://jakarta.apache.org/site/cvsindex.html
Once you do that, it's easy to compile and well documented. There's even
a sample application that shows Struts JSP and Templates side by side.
I'm using the Velocity Tools in my current application, and loving it!
If you have any questions, you can also post to the Velocity User list,
where there are several kind souls who will help you out.
Oh, and chapter 17 of Struts in Action also covers the basics. =:0)
-Ted.
Met @ Uber wrote:
> Could anyone point me towards some good resources on using struts and
> velocity together? I get the general idea, it replaces JSP, but how do
> I set it up within my struts actions (and anywhere else needed for use
> within struts)?
>
> Thanks in advance,
>
> ~ Matthew
--
Ted Husted,
Struts in Action <http://husted.com/struts/book.html>
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org
Re: Struts & Velocity
Posted by Jonathan Revusky <jo...@revusky.com>.
Met @ Uber wrote:
> Could anyone point me towards some good resources on using struts and
> velocity together? I get the general idea, it replaces JSP, but how do
> I set it up within my struts actions (and anywhere else needed for use
> within struts)?
I know this isn't precisely what you're asking for, but if you're
interested in replacing the use of JSP with a template engine, you might
consider FreeMarker, which is a template engine like Velocity, but more
powerful, and more actively developed and maintained currently.
FreeMarker integrates quite well with Struts. Here is the appropriate
manual section.
http://freemarker.org/docs/pgui_misc_servlet.html
One major advantage of FM is that 3rd party JSP taglibs are supported
from within FreeMarker templates. So, basically, you get your cake and
eat it too. If there is some really cool JSP taglib that does something
you need, you don't lose the ability to leverage that by opting for FM
over JSP.
Anyway, I hope that's helpful.
Best Regards,
Jonathan Revusky
--
lead developer, FreeMarker project, http://freemarker.org/
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org
Re: Struts & Velocity
Posted by Melissa L Kelley <st...@stuology.net>.
On 30 May 2003, Met @ Uber wrote:
Try looking at Roller: http://www.rollerweblogger.org/page/project
You can download the source from Source Forge:
http://sourceforge.net/project/showfiles.php?group_id=47722&release_id=153810
> Could anyone point me towards some good resources on using struts and
> velocity together? I get the general idea, it replaces JSP, but how do
> I set it up within my struts actions (and anywhere else needed for use
> within struts)?
>
> Thanks in advance,
>
> ~ Matthew
> --
> Met @ Uber <me...@uberstats.com>
> Uberstats
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: struts-user-help@jakarta.apache.org
>
>
------------------------------
Melissa L Kelley
stu.strutsusers@stuology.net
www.stuology.net
------------------------------
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org