Help coderanch get a
new server
by contributing to the fundraiser
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Devaka Cooray
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Tim Moores
  • Carey Brown
  • Mikalai Zaikin
Bartenders:
  • Lou Hamers
  • Piet Souris
  • Frits Walraven

Mr. Ford: Velocity Templates

 
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Do you feel Velocity Templates still has a place as the View Component in a framework, or does JSTL provide the same benefits as Velocity while being a standard?
I hear a lot about Velocity Templates but I do not see a reason to use them over JSTL.
 
Author
Posts: 82
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Do you feel Velocity Templates still has a place as the View Component in a framework, or does JSTL provide the same benefits as Velocity while being a standard?


I don't think that JSTL offers nearly as much functionality (or readability) as Velocity. Really, they address different areas. JSTL handles basic behaviors like iteration and decisions. Velocity is more expressive, with variables, expressions, and more power. Plus, JSTL (because it must adhere to XHTML restrictions) is a tad cryptic.
Velocity is very popular, and has virtually a cult following. In my chapter on Velocity, I use it as the view component in a Model 2 application.
 
Ranch Hand
Posts: 63
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by Neal Ford:

Velocity is very popular, and has virtually a cult following. In my chapter on Velocity, I use it as the view component in a Model 2 application.


I might also add that it's really easy to use for things like code generation, too. I've not tried it, but I imagine that using JSP for code generation would be rather cumbersome.
 
Ranch Hand
Posts: 3178
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by Josh Rehman:

I might also add that it's really easy to use for things like code generation, too. I've not tried it, but I imagine that using JSP for code generation would be rather cumbersome.


I do want to add here that as far as I use Velocity in the past, it does really incredible job in separation of the codes from the page design... I used it since it's in version 1.2... I'm not sure what the latest version of Velocity is? But I haven't used that latest version yet...
But I do like it personally...
 
reply
    Bookmark Topic Watch Topic
  • New Topic