blob: 0c2da82dd2fc8e04f4235739913554e595271378 [file] [log] [blame]
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!--
Copyright 1999-2004 The Apache Software Foundation
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<!-- Content Stylesheet for Site -->
<!-- start the processing -->
<!-- ====================================================================== -->
<!-- GENERATED FILE, DO NOT EDIT, EDIT THE XML FILE IN xdocs INSTEAD! -->
<!-- Main Page Section -->
<!-- ====================================================================== -->
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"/>
<meta name="author" value="Jon S. Stevens">
<meta name="email" value="jon@latchkey.com">
<title>Velocity - You make the decision</title>
</head>
<body bgcolor="#ffffff" text="#000000" link="#525D76">
<table border="0" width="100%" cellspacing="0">
<!-- TOP IMAGE -->
<tr>
<td align="left">
<a href="http://jakarta.apache.org"><img src="http://jakarta.apache.org/images/jakarta-logo.gif" border="0"/></a>
</td>
<td align="right">
<a href="http://jakarta.apache.org/velocity/"><img src="../images/logo.gif" alt="Velocity" border="0"/></a>
</td>
</tr>
</table>
<table border="0" width="100%" cellspacing="4">
<tr><td colspan="2">
<hr noshade="" size="1"/>
</td></tr>
<tr>
<!-- LEFT SIDE NAVIGATION -->
<td width="20%" valign="top" nowrap="true">
<!-- ============================================================ -->
<p><strong>About</strong></p>
<ul>
<li> <a href="../index.html">Overview</a>
</li>
<li> <a href="../getting-started.html">Getting Started</a>
</li>
<li> <a href="http://jakarta.apache.org/builds/jakarta-velocity/">Download</a>
</li>
<li> <a href="../install.html">Install</a>
</li>
<li> <a href="../design.html">Design</a>
</li>
<li> <a href="../contributors.html">Contributors</a>
</li>
<li> <a href="../changes.html">ChangeLog</a>
</li>
<li> <a href="../code-standards.html">Coding Standards</a>
</li>
<li> <a href="../license.html">License</a>
</li>
<li> <a href="../todo.html">TODO</a>
</li>
<li> <a href="http://issues.apache.org/bugzilla/enter_bug.cgi?product=Velocity">Report Issues</a>
</li>
</ul>
<p><strong>Community</strong></p>
<ul>
<li> <a href="../powered.html">Powered By Velocity</a>
</li>
<li> <a href="http://jakarta.apache.org/site/getinvolved.html">Get Involved</a>
</li>
<li> <a href="http://jakarta.apache.org/site/mail.html">Mailing Lists</a>
</li>
<li> <a href="http://jakarta.apache.org/site/cvsindex.html">CVS Repositories</a>
</li>
</ul>
<p><strong>Docs</strong></p>
<ul>
<li> <a href="../user-guide.html">User's Guide (English)</a>
</li>
<li> <a href="../user-guide_fi.html">User's Guide (Finnish)</a>
</li>
<li> <a href="../user-guide_fr.html">User's Guide (French)</a>
</li>
<li> <a href="../user-guide_es.html">User's Guide (Spanish)</a>
</li>
<li> <a href="../developer-guide.html">Developer's Guide</a>
</li>
<li> <a href="../vtl-reference-guide.html">VTL Reference Guide</a>
</li>
<li> <a href="../specification.html">Specification</a>
</li>
<li> <a href="../api/index.html">Javadoc</a>
</li>
</ul>
<p><strong>Tools</strong></p>
<ul>
<li> <a href="../tools/index.html">Velocity Tools</a>
</li>
<li> <a href="../anakia.html">Anakia : XML->doc tool</a>
</li>
<li> <a href="../texen.html">Texen : text generation</a>
</li>
<li> <a href="../dvsl/index.html">DVSL : XML xformation</a>
</li>
<li> <a href="../veltag.html">Veltag : JSP taglib</a>
</li>
<li> <a href="../migration.html">Migration to Velocity</a>
</li>
<li> <a href="../devtools.html">Editors and IDEs</a>
</li>
</ul>
<p><strong>Comparisons</strong></p>
<ul>
<li> <a href="../ymtd/ymtd.html">YMTD</a>
</li>
<li> <a href="../differences.html">VM/WM Differences</a>
</li>
<li> <a href="../casestudy1.html">JSP vs. Velocity</a>
</li>
<li> <a href="../casestudy2.html">XMLC vs. Velocity</a>
</li>
</ul>
<p><strong>Site Translations</strong></p>
<ul>
<li> <a href="http://jakarta.apache.org/velocity/">English</a>
</li>
<li> <a href="http://www.ingrid.org/jajakarta/velocity/velocity-1.2-rc2/docs-ja/index.html">Japanese</a>
</li>
</ul>
</td>
<td width="80%" align="left" valign="top">
<table border="0" cellspacing="0" cellpadding="2" width="100%">
<tr><td bgcolor="#525D76">
<font color="#ffffff" face="arial,helvetica,sanserif">
<a name="You make the decision."><strong>You make the decision.</strong></a>
</font>
</td></tr>
<tr><td>
<blockquote>
<p>
The title of this essay is called "You make the decision." The point of
this essay is to explore what it is like to develop a web application
using a couple of popular tools that are available today. In order to do
this, examples of using these technologies will be shown. This will give
a nice first person account of what it is like to use these technologies
on a daily basis.
</p>
<p>
The audience of this document is aimed at the people who are looking for
alternatives to JSP as well as people who are currently using JSP and
JSP based technologies and may not realize that there are other
solutions out there that also address the many issues of developing web
applications.
</p>
<p>
<strong>It is possible to navigate through the essay by simply clicking
on the links at the bottom of each page.</strong> To return to this page
at any time, click YMTD on the left side navigation.
</p>
</blockquote>
</p>
</td></tr>
<tr><td><br/></td></tr>
</table>
<table border="0" cellspacing="0" cellpadding="2" width="100%">
<tr><td bgcolor="#525D76">
<font color="#ffffff" face="arial,helvetica,sanserif">
<a name="What are we comparing?"><strong>What are we comparing?</strong></a>
</font>
</td></tr>
<tr><td>
<blockquote>
<p>
This multi page document will compare usage of Velocity and JSP. In both
cases, we have a framework of reusable code that makes life easier for
building web applications by providing the "Model" and "Controller"
portions of the MVC paradigm (Turbine and Struts). There is also a
template language that provides the "View" portion (JSP and Velocity).
</p>
<p>
Please note that there are a bazillion different things that could be
compared here. To be clear, we are not really trying to compare the
feature set of each of these technologies as they both can get the job
done. Instead, we are trying to compare what it is like to do the job
with each of the tools.
</p>
<p>
The design concepts mentioned above that we will be exploring have been
documented in detail in various locations, for more information, please
refer to some of these reference URL's:
</p>
<ul>
<li><a href="http://www.caucho.com/articles/jsp_templates.xtp" target="reference">Caucho MVC JSP</a></li>
<li><a href="http://www.nwconnection.com/2000_09/web/" target="reference">Novell Connection MVC JSP</a></li>
<li><a href="http://developer.novell.com/research/devnotes/1999/december/03/02.htm" target="reference">Novell Connection MVC JSP</a></li>
<li><a href="http://www.webmacro.org/tutorial/mvc.html" target="reference">Webmacro MVC</a></li>
<li><a href="http://www.javaworld.com/jw-01-2001/jw-0119-freemarker.html" target="reference">Freemarker MVC</a></li>
<li><a href="http://javaworld.com/javaworld/jw-12-1999/jw-12-ssj-jspmvc.html" target="reference">Model 2</a></li>
<li><a href="http://jakarta.apache.org/turbine/turbine-2/pullmodel.html" target="reference">The Pull Model</a></li>
</ul>
</blockquote>
</p>
</td></tr>
<tr><td><br/></td></tr>
</table>
<table border="0" cellspacing="0" cellpadding="2" width="100%">
<tr><td bgcolor="#525D76">
<font color="#ffffff" face="arial,helvetica,sanserif">
<a name="Credits"><strong>Credits</strong></a>
</font>
</td></tr>
<tr><td>
<blockquote>
<p>
We would first like to thank the entire <a href="../contributors.html">Velocity</a> and <a href="/turbine/contributors.html">Turbine</a> teams for creating such
great products. These groups are a 100% volunteer organization and
some very talented engineers have come together from around the world to
help make these products a reality and a success. They deserve a round
of thanks and appreciation for their hard work and dedication.
</p>
<p>
Examples, comments as well as the some of the flow of this document has
been borrowed with permission from <a href="http://www.servlets.com/">Jason Hunter</a>, author of the
excellent <a href="http://www.oreilly.com/catalog/jservlet2/">O'Reilly
Java Servlet Programming, 1st and 2nd Edition book</a>. We do hope that
you purchase his next book when it is released in order to support Java
Servlets as well as Jason for his hard work.
</p>
<p>
Jason's book includes chapters covering Struts/JSP, Velocity, and other
MVC technologies. We definitely encourage you to read the book to learn
JSP and Velocity and see how they compare. What we do here (that Jason
couldn't do in the book) is put JSP/Struts and Velocity/Turbine on the
same page together for a direct side-by-side comparison.
</p>
</blockquote>
</p>
</td></tr>
<tr><td><br/></td></tr>
</table>
<table border="0" cellspacing="0" cellpadding="2" width="100%">
<tr><td bgcolor="#525D76">
<font color="#ffffff" face="arial,helvetica,sanserif">
<a name="Revisions / Corrections / Additions"><strong>Revisions / Corrections / Additions</strong></a>
</font>
</td></tr>
<tr><td>
<blockquote>
<p>
This <a href="./ymtd-changes.html">page</a> tracks the list of changes
in this essay.
</p>
<p>
It is very important to accurately compare these technologies.
Therefore, a lot of effort has gone into this essay to state things as
fairly and accurately as possible. Therefore, this entire essay is
checked into CVS and it is possible for you to provide feedback, but
also patches that fix any mistakes. In other words, this is a community
driven document. It is currently stored in the <a href="http://jakarta.apache.org/site/cvsindex.html">CVS tree</a> for the
Velocity project in the xdocs directory.
</p>
<p>
If there are any changes that need to be made to this document, please
do not hesitate to contact <a href="mailto:jon@apache.org">Jon Stevens</a>.
</p>
<p>
On to the rest of the essay...
</p>
<p>
<strong>[ Next -&gt; <a href="./ymtd-saying-hello.html">Saying Hello</a> ]</strong>
</p>
</blockquote>
</p>
</td></tr>
<tr><td><br/></td></tr>
</table>
</td>
</tr>
<!-- FOOTER -->
<tr><td colspan="2">
<hr noshade="" size="1"/>
</td></tr>
<tr><td colspan="2">
<div align="center"><font color="#525D76" size="-1"><em>
Copyright &#169; 1999-2004, The Apache Software Foundation
</em></font></div>
</td></tr>
</table>
</body>
</html>
<!-- end the processing -->