File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JSP and the fly likes Which is better (and for what):  JSP or velocity? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSP
Bookmark "Which is better (and for what):  JSP or velocity?" Watch "Which is better (and for what):  JSP or velocity?" New topic
Author

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

Benjamin Weaver
Ranch Hand

Joined: Apr 08, 2003
Posts: 161
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?
Jeroen Wenting
Ranch Hand

Joined: Oct 12, 2000
Posts: 5093
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.


42
sun ram
Ranch Hand

Joined: Dec 18, 2001
Posts: 61
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


SCSecA,SCNA,SCSA,SCWCD,SCJP
Sonny Gill
Ranch Hand

Joined: Feb 02, 2002
Posts: 1211

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
Chris Stehno
Ranch Hand

Joined: Feb 26, 2001
Posts: 180
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.


- Chris Stehno, SCPJ
Benjamin Weaver
Ranch Hand

Joined: Apr 08, 2003
Posts: 161
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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Which is better (and for what): JSP or velocity?