Jakarta Velocity Tools 1.0 Released 28
Nathan Bubna writes "Jakarta Velocity Tools is a newly released project from the Apache Software Foundation. It provides servlets and tools for rapid, clean, MVC web development with Velocity, tools for using Velocity
with the Jakarta Struts framework, and a set of generic tools to help with any Velocity project."
Anyone use Velocity? (Score:2)
Re:Anyone use Velocity? (Score:2)
Re:Anyone use Velocity? (Score:5, Interesting)
In my opinion Velocity is the best Java-based templating system and the second-best over all (next to Zope's near perfect PageTemplates system).
Re:Anyone use Velocity? (Score:1)
Re:Anyone use Velocity? (Score:1)
cheers.
Re:Anyone use Velocity? (Score:5, Informative)
I'm leading a team of developers using Velocity for a large e-Business application, with many modules. It's a beauty to use, and our solution has won a few awards last year. We use a custom framework (not Struts, not VelocityServlet) to choose templates to load, since our app is designed to be highly customizable for each of our customers (medium or large business, including government). We also keep the locale in the session, and load the appropriate localized Velocity template if available. Let's just say this app is quite large. We now have well over a thousand Velocity templates, built up over the last few years.
Unfortunately I'm not at liberty to identify the application or the company here, because the company is actually very much a Microsoft shop, and it's been a major political issue that I've had our team move our application away from Microsoft solutions (it used to be VB/ASP). But it's performed well and never let us down (although the 1.3 release of Velocity was quite buggy and we had to revert to 1.2 until 1.3.1 came out).
I would wholeheartedly recommend Velocity. I had our team start using it because we ran into a huge mess with ASP (which I knew would repeat with JSP). Enforcing code separation between your view and your model is important, and Velocity does it beautifully. It avoids having a lot of unnecessary (and unmaintainable) cruft mixed in with your HTML.
If you need more specific information, we can discuss it by email. I'll be happy to help you in any way that I can.
100% logic/presentation separation: never true (Score:2)
I have moderator points and could have modded you down, but I'd rather reply.
This, as always, is untrue. There is no such thing as 100% logic/presentation separation. Suppose you have a wide table that is the result of a database query. Should you make every third row a different background color to ease horizontal navigation? Every other row? Just leave them all the same background color? This d
Re:Anyone use Velocity? (Score:3, Insightful)
Re:Anyone use Velocity? (Score:1)
I'd love more specific information...but what's your e-mail address? (it's not public)
Re:Anyone use Velocity? (Score:1)
arozeluk [at thingy] websoup [period] net
Re:Anyone use Velocity? (Score:1)
http://jakarta.apache.org/tapestry [apache.org]
Re:Anyone use Velocity? (Score:1)
Velocity is very comfortable. I find it cleaner than JSP. Its limitations tend to push logic back into the Java code where it belongs. You write a 'pull tool' to expose an API to the Velocity layer and then have a lot of freedom to design and redesign your interface.
Re:Anyone use Velocity? (Score:1)
One *huge* advantage of Velocity is that you can use it to generate documents other than web pages. I use it to create utility emails and in one case an XSL-FO document for PDF generation. I can leverage my web page velocity skills to these other realms.
Not sure how you would do that in JSP or ASP!
emails, PDFs (Score:2)
Re:Anyone use Velocity? (Score:1)
I don't understand the people who say it's difficult to use, from the template perspective all you do is put a dollar sign ($) and a bean name
FreeMarker (Score:3, Insightful)
And no, I am not a freemarker developer, just a happy user.
Re:FreeMarker (Score:1)
Cheers,
Velocity vs. JSTL and/or Custom Tags (Score:3, Interesting)
If you haven't used JSTL I strongly suggest that you give them a look as well. Very simple to use, very extensive and really make JSP alot faster to develop and maintain.
Re:Velocity vs. JSTL and/or Custom Tags (Score:2, Informative)
While Velocity provides for a clean separation of logic and presentation, so do taglibs with the added benefit that they are *much* easier on the webdesigner, and there is tool support to render them during design phase. Besides that, there *has* to be logic in the presentation, namely presentation logic. The backend gives a damn how a number has to be formatted, or from which resources actual pieces of te
VTL should be called (Score:1)
Presentation and Code (Score:2, Interesting)
Since people are talking here about the separation of presentation and logic code, I'd simply like to throw in another toolkit which achieves this wonderfully: Janx [bearriver.com] (demo here [bearriver.com]).
While total separation is not the goal, the fact that after only a couple of hours of me explaining the basics of flow control and context to purely HTML/Interface folks they were able to take full control of the user interface development and maintenance of an active online magazine.
Mod me as a troll if you will, but I've yet t
Velocity is nice (Score:2)
The other advantage of velocity is i