Most of the JSP work i have done was in the model 1 style (ie: lots of business domain code in the jsp files). I found it very exciting at the time, and was able to do a lot of interesting things.

Since moving to web application frameworks (jakarta turbine and ww2) I've exclusively used velocity. I find velocity's syntax to be simple, clean, and sufficently powerful for constructing views. I mean, when you get down to it, a view is simply html (in most cases), and velocity does it nicely. Custom macros and the #parse() marco allow me to create modular .vm files that can be reused many many times.

If you are just looking to get something started, i think velocity has a much lower bar of entry. You just have to read one page: http://jakarta.apache.org/velocity/user-guide.html , and you pretty know everything there is to know.

Some of the down sides about velocity, IDE and HTML editor support can vary. the # syntax used in velocity has confused some of the editors i've used in the past. JSP support is undoubtly better given it's larger market acceptance, and the fact that is conforms to the XML/HTML (bracket <>) form.

Undoubtedly, JSP can do all that velocity can and much much more. Most of this advanced functionality is unknown to me, and could be very useful to you. I just find the JSP syntax a little too bulky for my tastes, and velocity is fitting nicely.

Cheers,
eric

Erik Jõgi wrote:

Hello,

Following the 'Tomcat out of memory' thread in this list I got the impression that several people were suggesting to Velocity instead
of JSPs for for the views.


I haven't got any experience with Velocity besides looking at the stuff that is part of WebWork but for some reason I have had the impression that JSPs with taglibs and stuff are a more higher-level language than Velocity. Am I mistaken with that idea?

Also if I put the question this way - I am starting a new project with WebWork2 and I don't have much of experience with neither JSPs
nor Velocity then what would you suggest I choose?


best regards,
erik




-------------------------------------------------------
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click
_______________________________________________
Opensymphony-webwork mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork





------------------------------------------------------- SF.Net is sponsored by: Speed Start Your Linux Apps Now. Build and deploy apps & Web services for Linux with a free DVD software kit from IBM. Click Now! http://ads.osdn.com/?ad_id56&alloc_id438&op=click _______________________________________________ Opensymphony-webwork mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork

Reply via email to