Velocity 1.4 Released
JohnA writes "After what seemed to be a 30 year beta period, the Apache Jakarta team has made available the final release version of Velocity 1.4. If you're not familiar with Velocity, it's one of the most powerful and popular templating engines around. And, as an added bonus, a DreamWeaver plugin was also released."
Now we can finally start another Jakarta templating project that does almost exactly the same thing, but not quite, but our description of the project will claim our version is superior, with a name that has nothing to do with what the project does. How about "Project Platypus" ?
Project Platypus Overview:
"Similar to Velocity, but with some important differences: Mainly, we've added several reptilian characteristics which include using the same opening for reproduction and eliminating waste products, the ability to lay eggs, cervical ribs, and local ascorbic acid synthesis in the kidney. Also, Project Platypus can swim."
Why do we need an alternative to JSP, that also works in a Java environment? I understand the use of JSP as an alternative to PHP or ASP (3 different platforms), but I don't understand why I need two solutions to (seemingly) the same problem on the same platform. Could someone enlighten me?
10b||~10b -- aah, what a question!
I think Tapestry (now adopted by jakarta too) is a better replacement for JSP. It's a lot easier to use than Struts, requires less configuration, has a nice plugin for Eclipse (spindle), and has a very elegant design, that allows for a lot of extensibility and reuse while keeping presentation separate from logic. The only drawback, really, is that's it not JSP and some people have a problem with that. Struts as I see it is a patch on top of JSP. JSF, JDO, and some other initiatives by Sun are just attempts to catch up with more advanced, robust and mature open source projects like Tapestry, Hibernate and the like.
Go hug some trees.
Apache is not just the web server, but all projects run by the Apache Software Foundation. There are quite a few, especially in relation to J2EE, that are of great interest to enterprise developers. Most of the high school kids on /. don't ever see this backend stuff, so they tend to keep away from this section.
JSP is not *designed* to produce crappy code, even if a lot of people produce crappy code with it. Hell, the same goes for PHP, although the latter's genesis as an HTML-embedded language does, I believe, expose it to that sort of charge.
There are reasons for servlet forwarding and tag libraries; they let you do the heavy lifting in servlets and tag handlers, and just handle display in JSPs.
I say this as the author of several JSPs (some deployed in production on reasonably high-profile sites) with buttloads of spaghetti-code, static Java blocks, and their own methods(!). I did it all out of ignorance of the true power of the tools the Serlvet spec designers put in my hands. It's an education issue more than a spec design issue.
Of course, there is that undercurrent among Java developers that suggests if the language permits a certain practice, it encourages it. That's what you get for designing a "B&D" language =)
"Oh, I hope he doesn't give us halyatchkies," said Heinrich.
Is that, unlike technologies like JSP, Velocity works simply as a component, a module, which you can adapt for various purposes in your application. I don't believe in frameworks, I believe in modules which have their source code available.
- A Small-time Nigerian Weblog Publisher
WebMacro has moved into the beta phase of release 2.0!
WebMacro is the original templating engine that velocity is based on. Unfortunately, due to licensing issues, they were never able to merge and have now diverged enough that they are now quite different despite the base similarities.
Version 2.0b1 of WebMacro has new and exciting features as well as efficiency gains. One of the most interesting new features is actually a result of the improvements in Java technology itself. The older versions had a lot of factories and contexts in order to get around the inefficiencies of object creation and clean-up, but now, much of this has been removed or hidden because of improvments in Java garbage collection has made them supurflous.
Signatures are a waste of bandwi (buffering...)
Can I write FORTRAN in it?
Is there an Emacs mode?