• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Which is better (and for what): JSP or velocity?

 
Ranch Hand
Posts: 161
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I'm a newbie to the front end. I will likely be designing a web application using Struts. I need to choose a method of page generation, but don't know quite what the various technologies are used for, and what their strengths are.
So I'll put the question to you: Which is better, velocity or jsp? Does velocity solve the same problems as JSP in general, or does it correspond in function to JSTL?
Aside from JsP and velocity, which other page-generation technologies do you like?
 
Ranch Hand
Posts: 5093
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Learn the platform before you start to meddle in obscure addons like Struts and Velocity...
I've read up on Struts, thought it overly complex (like most general purpose frameworks), like shooting a mosquito with an elephant gun for most applications.
Haven't used Velocity, but it looks nice as an addon.
 
Ranch Hand
Posts: 61
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
HI
First start to learn about JSP. Use Tomcat 5 for jsp 2.0.
This will give you some idea about JSP.
I don't know much about velocity.
SR
 
Ranch Hand
Posts: 1211
Mac IntelliJ IDE
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I will take a wild guess that Ben knew that already
I have also only used JSP's, meddled a bit with struts, found it rather intrusive...would like to hear more on this topic myself
 
Ranch Hand
Posts: 180
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Struts is a bit over-bearing. Take a look at Spring (http://www.springframework.org) sometime.
Velocity and JSP/JSTL are very similar except that Velocity uses uncompiled templates, while JSP compiles into servlets. I have used both and prefer JSP/JSTL. Both technologies kind of force you to do more object oriented design and planning up front... if you don't you may find yourself in some weird situations. JSP all by itself is best to start with... and it is flexible enough that you don't have to be an architect to get the full benefit out of it.
Hope this helps.
 
Benjamin Weaver
Ranch Hand
Posts: 161
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks, folks, for the suggestions. They were helpful. I'll take Chris's hint and look at JSP first. It makes sense that JSP is a bit less leveraged, therefore less cantankerous to start off with.
 
If you have a bad day in October, have a slice of banana cream pie. And this tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic