You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@velocity.apache.org by jo...@apache.org on 2001/08/01 03:10:14 UTC

cvs commit: jakarta-velocity/xdocs/stylesheets project.xml

jon         01/07/31 18:10:14

  Modified:    docs     anakia.html changes.html code-standards.html
                        contributors.html design.html developer-guide.html
                        differences.html getting-started.html index.html
                        install.html license.html migration.html
                        powered.html specification-ast.html
                        specification-bnf.html specification.html
                        texen.html todo.html user-guide.html
                        vtl-reference-guide.html
               docs/ymtd ymtd-changes.html ymtd-conclusion.html
                        ymtd-embedded.html ymtd-error-handling.html
                        ymtd-generation.html ymtd-hosting.html
                        ymtd-implementation.html ymtd-javabeans.html
                        ymtd-sampleapp.html ymtd-saying-hello.html
                        ymtd-taglibs.html ymtd.html
               xdocs    index.xml powered.xml
               xdocs/stylesheets project.xml
  Added:       docs     casestudy1.html
               xdocs    casestudy1.xml
  Log:
  cleaned up the homepage a bit
  added a couple more people who are using velocity
  added a usecase document based on nic's email
  
  Revision  Changes    Path
  1.23      +2 -0      jakarta-velocity/docs/anakia.html
  
  Index: anakia.html
  ===================================================================
  RCS file: /home/cvs/jakarta-velocity/docs/anakia.html,v
  retrieving revision 1.22
  retrieving revision 1.23
  diff -u -r1.22 -r1.23
  --- anakia.html	2001/07/31 21:44:08	1.22
  +++ anakia.html	2001/08/01 01:10:12	1.23
  @@ -92,6 +92,8 @@
   </li>
                       <li>    <a href="./differences.html">VM/WM Differences</a>
   </li>
  +                    <li>    <a href="./casestudy1.html">Case Study 1</a>
  +</li>
                   </ul>
               <p><strong>Tools</strong></p>
           <ul>
  
  
  
  1.48      +2 -0      jakarta-velocity/docs/changes.html
  
  Index: changes.html
  ===================================================================
  RCS file: /home/cvs/jakarta-velocity/docs/changes.html,v
  retrieving revision 1.47
  retrieving revision 1.48
  diff -u -r1.47 -r1.48
  --- changes.html	2001/07/31 21:44:08	1.47
  +++ changes.html	2001/08/01 01:10:12	1.48
  @@ -92,6 +92,8 @@
   </li>
                       <li>    <a href="./differences.html">VM/WM Differences</a>
   </li>
  +                    <li>    <a href="./casestudy1.html">Case Study 1</a>
  +</li>
                   </ul>
               <p><strong>Tools</strong></p>
           <ul>
  
  
  
  1.29      +2 -0      jakarta-velocity/docs/code-standards.html
  
  Index: code-standards.html
  ===================================================================
  RCS file: /home/cvs/jakarta-velocity/docs/code-standards.html,v
  retrieving revision 1.28
  retrieving revision 1.29
  diff -u -r1.28 -r1.29
  --- code-standards.html	2001/07/31 21:44:08	1.28
  +++ code-standards.html	2001/08/01 01:10:12	1.29
  @@ -92,6 +92,8 @@
   </li>
                       <li>    <a href="./differences.html">VM/WM Differences</a>
   </li>
  +                    <li>    <a href="./casestudy1.html">Case Study 1</a>
  +</li>
                   </ul>
               <p><strong>Tools</strong></p>
           <ul>
  
  
  
  1.31      +2 -0      jakarta-velocity/docs/contributors.html
  
  Index: contributors.html
  ===================================================================
  RCS file: /home/cvs/jakarta-velocity/docs/contributors.html,v
  retrieving revision 1.30
  retrieving revision 1.31
  diff -u -r1.30 -r1.31
  --- contributors.html	2001/07/31 21:44:08	1.30
  +++ contributors.html	2001/08/01 01:10:12	1.31
  @@ -92,6 +92,8 @@
   </li>
                       <li>    <a href="./differences.html">VM/WM Differences</a>
   </li>
  +                    <li>    <a href="./casestudy1.html">Case Study 1</a>
  +</li>
                   </ul>
               <p><strong>Tools</strong></p>
           <ul>
  
  
  
  1.28      +2 -0      jakarta-velocity/docs/design.html
  
  Index: design.html
  ===================================================================
  RCS file: /home/cvs/jakarta-velocity/docs/design.html,v
  retrieving revision 1.27
  retrieving revision 1.28
  diff -u -r1.27 -r1.28
  --- design.html	2001/07/31 21:44:08	1.27
  +++ design.html	2001/08/01 01:10:12	1.28
  @@ -92,6 +92,8 @@
   </li>
                       <li>    <a href="./differences.html">VM/WM Differences</a>
   </li>
  +                    <li>    <a href="./casestudy1.html">Case Study 1</a>
  +</li>
                   </ul>
               <p><strong>Tools</strong></p>
           <ul>
  
  
  
  1.69      +2 -0      jakarta-velocity/docs/developer-guide.html
  
  Index: developer-guide.html
  ===================================================================
  RCS file: /home/cvs/jakarta-velocity/docs/developer-guide.html,v
  retrieving revision 1.68
  retrieving revision 1.69
  diff -u -r1.68 -r1.69
  --- developer-guide.html	2001/07/31 21:44:08	1.68
  +++ developer-guide.html	2001/08/01 01:10:12	1.69
  @@ -92,6 +92,8 @@
   </li>
                       <li>    <a href="./differences.html">VM/WM Differences</a>
   </li>
  +                    <li>    <a href="./casestudy1.html">Case Study 1</a>
  +</li>
                   </ul>
               <p><strong>Tools</strong></p>
           <ul>
  
  
  
  1.16      +2 -0      jakarta-velocity/docs/differences.html
  
  Index: differences.html
  ===================================================================
  RCS file: /home/cvs/jakarta-velocity/docs/differences.html,v
  retrieving revision 1.15
  retrieving revision 1.16
  diff -u -r1.15 -r1.16
  --- differences.html	2001/07/31 21:44:08	1.15
  +++ differences.html	2001/08/01 01:10:12	1.16
  @@ -94,6 +94,8 @@
   </li>
                       <li>    <a href="./differences.html">VM/WM Differences</a>
   </li>
  +                    <li>    <a href="./casestudy1.html">Case Study 1</a>
  +</li>
                   </ul>
               <p><strong>Tools</strong></p>
           <ul>
  
  
  
  1.32      +2 -0      jakarta-velocity/docs/getting-started.html
  
  Index: getting-started.html
  ===================================================================
  RCS file: /home/cvs/jakarta-velocity/docs/getting-started.html,v
  retrieving revision 1.31
  retrieving revision 1.32
  diff -u -r1.31 -r1.32
  --- getting-started.html	2001/07/31 21:44:08	1.31
  +++ getting-started.html	2001/08/01 01:10:12	1.32
  @@ -92,6 +92,8 @@
   </li>
                       <li>    <a href="./differences.html">VM/WM Differences</a>
   </li>
  +                    <li>    <a href="./casestudy1.html">Case Study 1</a>
  +</li>
                   </ul>
               <p><strong>Tools</strong></p>
           <ul>
  
  
  
  1.45      +16 -23    jakarta-velocity/docs/index.html
  
  Index: index.html
  ===================================================================
  RCS file: /home/cvs/jakarta-velocity/docs/index.html,v
  retrieving revision 1.44
  retrieving revision 1.45
  diff -u -r1.44 -r1.45
  --- index.html	2001/07/31 21:44:08	1.44
  +++ index.html	2001/08/01 01:10:12	1.45
  @@ -92,6 +92,8 @@
   </li>
                       <li>    <a href="./differences.html">VM/WM Differences</a>
   </li>
  +                    <li>    <a href="./casestudy1.html">Case Study 1</a>
  +</li>
                   </ul>
               <p><strong>Tools</strong></p>
           <ul>
  @@ -161,7 +163,7 @@
         <tr><td>
           <blockquote>
                                       <p>
  -<strong>Article in JavaWorld on Velocity</strong>
  +<strong>3 published articles covering Velocity</strong>
   </p>
                                                   <blockquote>
   Many people believe that Velocity can only be used in the context of web
  @@ -169,37 +171,28 @@
   article</a> by Leon Messerschmidt shows that the design of Velocity is
   such that it can be used in a myriad of applications.
   </blockquote>
  -                                                <p>
  -<strong> 2 Products Now Depend on Velocity </strong>
  -</p>
  -                                                <blockquote>
  -Both Gentleware and Xadra have built products which depend on Velocity.
  -We have listed them on our ever expanding <a href="./powered.html">Powered By Velocity</a> page.
  -</blockquote>
  -                                                <p>
  -<strong> 4 Web Frameworks Now Support Velocity </strong>
  -</p>
                                                   <blockquote>
  -Melati, a tool for building Java-programmed websites backed by a database, 
  -now supports Velocity with their recent 0.54 release.  For more information
  -visit the <a href="http://www.melati.org/">Melati site</a>.
  +The Java Developer Journal recently <a href="http://www.sys-con.com/java/articlea.cfm?id=1080">published</a> an
  +edited version of the <a href="./ymtd/ymtd.html">YMTD article</a> by Jon
  +Stevens as the cover story for their July edition.
   </blockquote>
                                                   <blockquote>
  -Also, Maverick, a lightweight MVC framework which allows a wide variety of
  -view templating options, has added support for Velocity as of version 0.9.5.
  -For more information, visit the <a href="http://mav.sourceforge.net">Maverick site</a>.
  +  The Sun <i>Dot-Com Builder</i> developer information site has a "Best Practices" product profile on Velocity.  Check it out 
  +  <a href=" http://dcb.sun.com/practices/profiles/velocity.jsp">here</a>.  Thanks Sun!
   </blockquote>
  +                                                <p>
  +<strong> 3 Products Now Depend on Velocity </strong>
  +</p>
                                                   <blockquote>
  -Melati and Maverick join Jakarta's <a href="http://jakarta.apache.org/turbine/">Turbine</a> project,
  -as well as the <a href="http://jpublish.sourceforge.net">JPublish</a> web publishing
  -framework in supporting Velocity 'out of the box'.  
  +Gentleware, Xadra and Vamp have built products which depend on Velocity.
  +We have listed them on our ever expanding <a href="./powered.html">Powered By Velocity</a> page.
   </blockquote>
                                                   <p>
  -<strong> Sun's <i>Dot-Com Builder</i> Profiles Velocity</strong>
  +<strong> 4 Web Frameworks Now Support Velocity </strong>
   </p>
                                                   <blockquote>
  -  The Sun <i>Dot-Com Builder</i> developer information site has a "Best Practices" product profile on Velocity.  Check it out 
  -  <a href=" http://dcb.sun.com/practices/profiles/velocity.jsp">here</a>.  Thanks Sun!
  +Turbine, JPublish, Melati and Maverick all support Velocity.
  +We have listed them on our ever expanding <a href="./powered.html">Powered By Velocity</a> page.
   </blockquote>
                               </blockquote>
           </p>
  
  
  
  1.34      +2 -0      jakarta-velocity/docs/install.html
  
  Index: install.html
  ===================================================================
  RCS file: /home/cvs/jakarta-velocity/docs/install.html,v
  retrieving revision 1.33
  retrieving revision 1.34
  diff -u -r1.33 -r1.34
  --- install.html	2001/07/31 21:44:08	1.33
  +++ install.html	2001/08/01 01:10:12	1.34
  @@ -92,6 +92,8 @@
   </li>
                       <li>    <a href="./differences.html">VM/WM Differences</a>
   </li>
  +                    <li>    <a href="./casestudy1.html">Case Study 1</a>
  +</li>
                   </ul>
               <p><strong>Tools</strong></p>
           <ul>
  
  
  
  1.30      +2 -0      jakarta-velocity/docs/license.html
  
  Index: license.html
  ===================================================================
  RCS file: /home/cvs/jakarta-velocity/docs/license.html,v
  retrieving revision 1.29
  retrieving revision 1.30
  diff -u -r1.29 -r1.30
  --- license.html	2001/07/31 21:44:08	1.29
  +++ license.html	2001/08/01 01:10:12	1.30
  @@ -93,6 +93,8 @@
   </li>
                       <li>    <a href="./differences.html">VM/WM Differences</a>
   </li>
  +                    <li>    <a href="./casestudy1.html">Case Study 1</a>
  +</li>
                   </ul>
               <p><strong>Tools</strong></p>
           <ul>
  
  
  
  1.25      +2 -0      jakarta-velocity/docs/migration.html
  
  Index: migration.html
  ===================================================================
  RCS file: /home/cvs/jakarta-velocity/docs/migration.html,v
  retrieving revision 1.24
  retrieving revision 1.25
  diff -u -r1.24 -r1.25
  --- migration.html	2001/07/31 21:44:08	1.24
  +++ migration.html	2001/08/01 01:10:12	1.25
  @@ -92,6 +92,8 @@
   </li>
                       <li>    <a href="./differences.html">VM/WM Differences</a>
   </li>
  +                    <li>    <a href="./casestudy1.html">Case Study 1</a>
  +</li>
                   </ul>
               <p><strong>Tools</strong></p>
           <ul>
  
  
  
  1.7       +42 -0     jakarta-velocity/docs/powered.html
  
  Index: powered.html
  ===================================================================
  RCS file: /home/cvs/jakarta-velocity/docs/powered.html,v
  retrieving revision 1.6
  retrieving revision 1.7
  diff -u -r1.6 -r1.7
  --- powered.html	2001/07/31 21:44:08	1.6
  +++ powered.html	2001/08/01 01:10:12	1.7
  @@ -92,6 +92,8 @@
   </li>
                       <li>    <a href="./differences.html">VM/WM Differences</a>
   </li>
  +                    <li>    <a href="./casestudy1.html">Case Study 1</a>
  +</li>
                   </ul>
               <p><strong>Tools</strong></p>
           <ul>
  @@ -186,6 +188,24 @@
               </font>
   </td>
               </tr>
  +                                <tr>
  +                        <td bgcolor="#a0ddf0" colspan="" rowspan="" valign="top" align="left">
  +    <font color="#000000" size="-1" face="arial,helvetica,sanserif">
  +                
  +     <a href="http://www.geocities.com/vamp201/index.html">Venus Application Publisher (Vamp)</a>
  +    
  +            </font>
  +</td>
  +                                <td bgcolor="#a0ddf0" colspan="" rowspan="" valign="top" align="left">
  +    <font color="#000000" size="-1" face="arial,helvetica,sanserif">
  +                
  +      Venus Application Publisher is a user-friendly tool that helps you
  +      package, sign and publish Java (TM) Network Launching Protocol
  +      (JNLP) software.
  +    
  +            </font>
  +</td>
  +            </tr>
               </table>
                               </blockquote>
           </p>
  @@ -348,6 +368,28 @@
       <font color="#000000" size="-1" face="arial,helvetica,sanserif">
                   
        <a href="http://www.adeptra.com">Adeptra Inc.</a>
  +    
  +            </font>
  +</td>
  +            </tr>
  +                                <tr>
  +                        <td bgcolor="#a0ddf0" colspan="" rowspan="" valign="top" align="left">
  +    <font color="#000000" size="-1" face="arial,helvetica,sanserif">
  +                
  +     <a href="http://www.discuss.gr">www.discuss.gr</a>
  +    
  +            </font>
  +</td>
  +                                <td bgcolor="#a0ddf0" colspan="" rowspan="" valign="top" align="left">
  +    <font color="#000000" size="-1" face="arial,helvetica,sanserif">
  +                
  +     Online discussion forumm site built using Turbine and Velocity.
  +    
  +            </font>
  +</td>
  +                                <td bgcolor="#a0ddf0" colspan="" rowspan="" valign="top" align="left">
  +    <font color="#000000" size="-1" face="arial,helvetica,sanserif">
  +                
       
               </font>
   </td>
  
  
  
  1.10      +2 -0      jakarta-velocity/docs/specification-ast.html
  
  Index: specification-ast.html
  ===================================================================
  RCS file: /home/cvs/jakarta-velocity/docs/specification-ast.html,v
  retrieving revision 1.9
  retrieving revision 1.10
  diff -u -r1.9 -r1.10
  --- specification-ast.html	2001/07/31 21:44:08	1.9
  +++ specification-ast.html	2001/08/01 01:10:12	1.10
  @@ -92,6 +92,8 @@
   </li>
                       <li>    <a href="./differences.html">VM/WM Differences</a>
   </li>
  +                    <li>    <a href="./casestudy1.html">Case Study 1</a>
  +</li>
                   </ul>
               <p><strong>Tools</strong></p>
           <ul>
  
  
  
  1.10      +2 -0      jakarta-velocity/docs/specification-bnf.html
  
  Index: specification-bnf.html
  ===================================================================
  RCS file: /home/cvs/jakarta-velocity/docs/specification-bnf.html,v
  retrieving revision 1.9
  retrieving revision 1.10
  diff -u -r1.9 -r1.10
  --- specification-bnf.html	2001/07/31 21:44:08	1.9
  +++ specification-bnf.html	2001/08/01 01:10:12	1.10
  @@ -92,6 +92,8 @@
   </li>
                       <li>    <a href="./differences.html">VM/WM Differences</a>
   </li>
  +                    <li>    <a href="./casestudy1.html">Case Study 1</a>
  +</li>
                   </ul>
               <p><strong>Tools</strong></p>
           <ul>
  
  
  
  1.10      +2 -0      jakarta-velocity/docs/specification.html
  
  Index: specification.html
  ===================================================================
  RCS file: /home/cvs/jakarta-velocity/docs/specification.html,v
  retrieving revision 1.9
  retrieving revision 1.10
  diff -u -r1.9 -r1.10
  --- specification.html	2001/07/31 21:44:08	1.9
  +++ specification.html	2001/08/01 01:10:12	1.10
  @@ -92,6 +92,8 @@
   </li>
                       <li>    <a href="./differences.html">VM/WM Differences</a>
   </li>
  +                    <li>    <a href="./casestudy1.html">Case Study 1</a>
  +</li>
                   </ul>
               <p><strong>Tools</strong></p>
           <ul>
  
  
  
  1.22      +2 -0      jakarta-velocity/docs/texen.html
  
  Index: texen.html
  ===================================================================
  RCS file: /home/cvs/jakarta-velocity/docs/texen.html,v
  retrieving revision 1.21
  retrieving revision 1.22
  diff -u -r1.21 -r1.22
  --- texen.html	2001/07/31 21:58:48	1.21
  +++ texen.html	2001/08/01 01:10:12	1.22
  @@ -92,6 +92,8 @@
   </li>
                       <li>    <a href="./differences.html">VM/WM Differences</a>
   </li>
  +                    <li>    <a href="./casestudy1.html">Case Study 1</a>
  +</li>
                   </ul>
               <p><strong>Tools</strong></p>
           <ul>
  
  
  
  1.28      +2 -0      jakarta-velocity/docs/todo.html
  
  Index: todo.html
  ===================================================================
  RCS file: /home/cvs/jakarta-velocity/docs/todo.html,v
  retrieving revision 1.27
  retrieving revision 1.28
  diff -u -r1.27 -r1.28
  --- todo.html	2001/07/31 21:44:08	1.27
  +++ todo.html	2001/08/01 01:10:12	1.28
  @@ -92,6 +92,8 @@
   </li>
                       <li>    <a href="./differences.html">VM/WM Differences</a>
   </li>
  +                    <li>    <a href="./casestudy1.html">Case Study 1</a>
  +</li>
                   </ul>
               <p><strong>Tools</strong></p>
           <ul>
  
  
  
  1.45      +4 -0      jakarta-velocity/docs/user-guide.html
  
  Index: user-guide.html
  ===================================================================
  RCS file: /home/cvs/jakarta-velocity/docs/user-guide.html,v
  retrieving revision 1.44
  retrieving revision 1.45
  diff -u -r1.44 -r1.45
  --- user-guide.html	2001/07/24 10:27:07	1.44
  +++ user-guide.html	2001/08/01 01:10:12	1.45
  @@ -61,6 +61,8 @@
   </li>
                       <li>    <a href="./todo.html">TODO</a>
   </li>
  +                    <li>    <a href="http://nagoya.apache.org/bugzilla/enter_bug.cgi?product=Velocity">Report Issues</a>
  +</li>
                   </ul>
               <p><strong>Community</strong></p>
           <ul>
  @@ -91,6 +93,8 @@
                       <li>    <a href="./ymtd/ymtd.html">YMTD</a>
   </li>
                       <li>    <a href="./differences.html">VM/WM Differences</a>
  +</li>
  +                    <li>    <a href="./casestudy1.html">Case Study 1</a>
   </li>
                   </ul>
               <p><strong>Tools</strong></p>
  
  
  
  1.35      +2 -0      jakarta-velocity/docs/vtl-reference-guide.html
  
  Index: vtl-reference-guide.html
  ===================================================================
  RCS file: /home/cvs/jakarta-velocity/docs/vtl-reference-guide.html,v
  retrieving revision 1.34
  retrieving revision 1.35
  diff -u -r1.34 -r1.35
  --- vtl-reference-guide.html	2001/07/31 21:44:08	1.34
  +++ vtl-reference-guide.html	2001/08/01 01:10:13	1.35
  @@ -94,6 +94,8 @@
   </li>
                       <li>    <a href="./differences.html">VM/WM Differences</a>
   </li>
  +                    <li>    <a href="./casestudy1.html">Case Study 1</a>
  +</li>
                   </ul>
               <p><strong>Tools</strong></p>
           <ul>
  
  
  
  1.1                  jakarta-velocity/docs/casestudy1.html
  
  Index: casestudy1.html
  ===================================================================
  <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
  
  <!-- Content Stylesheet for Site -->
  
          
  <!-- start the processing -->
      <!-- ====================================================================== -->
      <!-- Main Page Section -->
      <!-- ====================================================================== -->
      <html>
          <head>
              <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"/>
  
                                                      <meta name="author" value="Velocity Documentation Team">
              <meta name="email" value="jon@latchkey.com">
              
              <title>Velocity - Case Study: JSP vs. Velocity</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://nagoya.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</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>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">Case Study 1</a>
  </li>
                  </ul>
              <p><strong>Tools</strong></p>
          <ul>
                      <li>    <a href="./anakia.html">Anakia</a>
  </li>
                      <li>    <a href="./texen.html">Texen</a>
  </li>
                      <li>    <a href="./migration.html">Migration to Velocity</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="Case Study: JSP vs. Velocity"><strong>Case Study: JSP vs. Velocity</strong></a>
          </font>
        </td></tr>
        <tr><td>
          <blockquote>
                                          <div align="left">
      <table cellspacing="4" cellpadding="0" border="0">
      <tr>
        <td bgcolor="#023264" width="1" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
        <td bgcolor="#023264" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
        <td bgcolor="#023264" width="1" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
      </tr>
      <tr>
        <td bgcolor="#023264" width="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
        <td bgcolor="#ffffff"><pre>
  I just wanted to share my findings on Velocity. I use velocity as an
  embedded mail templating system in our application server.
  
  When I began this subproject, I was using JSP as the language for
  generating template output for our application server. It was horrible.
  There were many problems, not to mention the difficulty of embedding a
  servlet engine in the app server that I could communicate with through
  direct method calls instead of over a socket. Specific to the Velocity
  argument was the JSP template versus the VTL template. I'd like to show
  you what my JSP template looked like. Package names have been changed to
  protect the innocent. Here is an example:
  
  ----------------8&lt;---------------
  
  &lt;%@ page session=&quot;false&quot;
          import=&quot;java.util.*,
          foo.events.*,
          foo.emeeting.*,
          foo.validation.*,
          foo.util.actionevent.ActionEvent,
          java.util.Date&quot;%&gt;
  
  &lt;jsp:useBean id=&quot;meeting&quot; scope=&quot;request&quot; type=&quot;foo.IMeeting&quot;
  class=&quot;foo.Meeting&quot;/&gt;
  
  &lt;html&gt;
  
  &lt;!-- etc --&gt;
  
  &lt;table width=&quot;600&quot; border=&quot;0&quot; cellspacing=&quot;0&quot; cellpadding=&quot;4&quot; 
      bgcolor=&quot;white&quot;&gt;
  &lt;tr&gt;
  &lt;td&gt;
  &lt;%
  Iterator            events = meeting.getStoredEventsIterator();
  int                 repId = 0;
  
  %&gt;
  &lt;i&gt;&lt;b&gt;Topic: &lt;%= meeting.getTopic()%&gt;&lt;/b&gt;&lt;/i&gt;
  &lt;p&gt;
  &lt;%
  while (events.hasNext()) {
    Object event = events.next();
    Participation yapper =
  meeting.getParticipation(((MeetingEvent)event).getFromId());
    if(event instanceof ChatEvent) {
      if(&quot;R&quot;.equals(yapper.getRole()) ) {
  %&gt;
  &lt;font color=&quot;#000000&quot;&gt;&lt;b&gt;&lt;%=yapper.getName()%&gt;:&lt;/b&gt;&lt;/font&gt;
  &lt;%
        repId = yapper.getParticipantId();
      } else {
  %&gt;
  &lt;font color=&quot;#0000f0&quot;&gt;&lt;b&gt;&lt;%=yapper.getName()%&gt;:&lt;/b&gt;&lt;/font&gt;
  &lt;%
      }
      ChatEvent ce = (ChatEvent) event;
  %&gt;
  &lt;br&gt;
  &lt;%
    } else if(event instanceof URLPushedEvent) {
      if(&quot;R&quot;.equals(yapper.getRole()) ) {
  %&gt;
  &lt;font color=&quot;#000000&quot;&gt;&lt;b&gt;&lt;%=yapper.getName()%&gt;:&lt;/b&gt;&lt;/font&gt;
  &lt;%
      } else {
  %&gt;
  &lt;font color=&quot;#0000f0&quot;&gt;&lt;b&gt;&lt;%=yapper.getName()%&gt;:&lt;/b&gt;&lt;/font&gt;
  &lt;%
      }
      URLPushedEvent pe = (URLPushedEvent) event;
  %&gt;
  &lt;a href=&quot;&lt;%=pe.getStoredData()%&gt;&quot;&gt;&quot;&lt;%=pe.getStoredData()%&gt;&quot;&lt;/a&gt; &lt;br&gt;
  &lt;%
    }
  }
  %&gt;
  &lt;hr&gt;
  &lt;br&gt;&lt;%=meeting.getMeetingId()%&gt;:&lt;%=repId%&gt;&lt;br&gt;
  &lt;/td&gt;
  &lt;/tr&gt;
  &lt;/table&gt;
  &lt;/div&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  
  ----------------8&lt;---------------
  
  Seasick yet? Now here is the Velocity template accomplishing the same
  thing as above:
  
  ----------------8&lt;---------------
  
  &lt;html&gt;
  
  &lt;!-- etc --&gt;
  
  &lt;table width=&quot;600&quot; border=&quot;0&quot; cellspacing=&quot;0&quot; cellpadding=&quot;4&quot; 
      bgcolor=&quot;white&quot;&gt;
  &lt;tr&gt;
  &lt;td&gt;
  &lt;i&gt;&lt;b&gt;Topic: $meeting.getTopic()&lt;/b&gt;&lt;/i&gt;&lt;p&gt;
  
  #foreach( $event in $meeting.getStoredEventsIterator() )
    #set( $yapper = $meeting.getParticipation($event.getFromId()) )
    #if( $event.getClass().getName().equals($urlEvent) )
      #if( $repRole.equals($yapper.getRole()) )
        #set( $repId = $yapper.getParticipantId() )
        &lt;font color=&quot;$blk&quot;&gt;&lt;b&gt;$yapper.getName()&lt;/b&gt;&lt;/font&gt;
      #else
        &lt;font color=&quot;$blu&quot;&gt;&lt;b&gt;$yapper.getName()&lt;/b&gt;&lt;/font&gt;
      #end
      &lt;a href=&quot;$event.getStoredData()&quot;&gt;$event.getStoredData()&lt;/a&gt; &lt;br&gt;
    #elseif( $event.getClass().getName().equals($chatEvent) )
      #if($repRole.equals($yapper.getRole()) )
        #set( $repId = $yapper.getParticipantId() )
        &lt;font color=&quot;$blk&quot;&gt;&lt;b&gt;$yapper.getName()&lt;/b&gt;&lt;/font&gt;
      #else
        &lt;font color=&quot;$blu&quot;&gt;&lt;b&gt;$yapper.getName()&lt;/b&gt;&lt;/font&gt;
      #end
      $event.getStoredData() &lt;br&gt;
    #end
  #end
  &lt;hr&gt;
  &lt;br&gt;$meeting.getMeetingId():$repId&lt;br&gt;
  &lt;/td&gt;
  &lt;/tr&gt;
  &lt;/table&gt;
  &lt;/div&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  
  ----------------8&lt;---------------
  
  I was subsequently able to define that largish foreach loop into a macro
  and shrink it even more, using Velocity's #macro function, so I could do
  this:
  
  #drawStandardHtmlTranscript ( $meeting )
  
  removing 20 lines of code from each template whilst only adding 2 lines
  (one for #parse and the other for the #drawStandardHtmlTranscript.
  
  The call to the Velocity runtime to finally merge the template consumes
  about 20-50 milleseconds (on a 400 mHz PII Linux system) when I pool the
  contexts (time doubles when I do not). This is great performance, too!
  
  Last but not least, teaching the web design team to write a template
  took literally 10 minutes from start to finish. They haven't asked me a
  single question since.
  
  -- 
  Nick Bauman
  Software Engineer
  3600 Dupont
  Minneapolis, MN
  55412
  Mobile Phone: (612) 810-7406
  Home Phone: (612) 522-0165
  </pre></td>
        <td bgcolor="#023264" width="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
      </tr>
      <tr>
        <td bgcolor="#023264" width="1" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
        <td bgcolor="#023264" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
        <td bgcolor="#023264" width="1" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
      </tr>
      </table>
      </div>
                              </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-2001, Apache Software Foundation
                      </em></font></div>
                  </td></tr>
              </table>
          </body>
      </html>
  <!-- end the processing -->
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  1.15      +2 -0      jakarta-velocity/docs/ymtd/ymtd-changes.html
  
  Index: ymtd-changes.html
  ===================================================================
  RCS file: /home/cvs/jakarta-velocity/docs/ymtd/ymtd-changes.html,v
  retrieving revision 1.14
  retrieving revision 1.15
  diff -u -r1.14 -r1.15
  --- ymtd-changes.html	2001/07/31 21:44:09	1.14
  +++ ymtd-changes.html	2001/08/01 01:10:13	1.15
  @@ -92,6 +92,8 @@
   </li>
                       <li>    <a href="../differences.html">VM/WM Differences</a>
   </li>
  +                    <li>    <a href="../casestudy1.html">Case Study 1</a>
  +</li>
                   </ul>
               <p><strong>Tools</strong></p>
           <ul>
  
  
  
  1.14      +2 -0      jakarta-velocity/docs/ymtd/ymtd-conclusion.html
  
  Index: ymtd-conclusion.html
  ===================================================================
  RCS file: /home/cvs/jakarta-velocity/docs/ymtd/ymtd-conclusion.html,v
  retrieving revision 1.13
  retrieving revision 1.14
  diff -u -r1.13 -r1.14
  --- ymtd-conclusion.html	2001/07/31 21:44:09	1.13
  +++ ymtd-conclusion.html	2001/08/01 01:10:13	1.14
  @@ -92,6 +92,8 @@
   </li>
                       <li>    <a href="../differences.html">VM/WM Differences</a>
   </li>
  +                    <li>    <a href="../casestudy1.html">Case Study 1</a>
  +</li>
                   </ul>
               <p><strong>Tools</strong></p>
           <ul>
  
  
  
  1.13      +2 -0      jakarta-velocity/docs/ymtd/ymtd-embedded.html
  
  Index: ymtd-embedded.html
  ===================================================================
  RCS file: /home/cvs/jakarta-velocity/docs/ymtd/ymtd-embedded.html,v
  retrieving revision 1.12
  retrieving revision 1.13
  diff -u -r1.12 -r1.13
  --- ymtd-embedded.html	2001/07/31 21:44:09	1.12
  +++ ymtd-embedded.html	2001/08/01 01:10:13	1.13
  @@ -92,6 +92,8 @@
   </li>
                       <li>    <a href="../differences.html">VM/WM Differences</a>
   </li>
  +                    <li>    <a href="../casestudy1.html">Case Study 1</a>
  +</li>
                   </ul>
               <p><strong>Tools</strong></p>
           <ul>
  
  
  
  1.14      +2 -0      jakarta-velocity/docs/ymtd/ymtd-error-handling.html
  
  Index: ymtd-error-handling.html
  ===================================================================
  RCS file: /home/cvs/jakarta-velocity/docs/ymtd/ymtd-error-handling.html,v
  retrieving revision 1.13
  retrieving revision 1.14
  diff -u -r1.13 -r1.14
  --- ymtd-error-handling.html	2001/07/31 21:44:09	1.13
  +++ ymtd-error-handling.html	2001/08/01 01:10:13	1.14
  @@ -92,6 +92,8 @@
   </li>
                       <li>    <a href="../differences.html">VM/WM Differences</a>
   </li>
  +                    <li>    <a href="../casestudy1.html">Case Study 1</a>
  +</li>
                   </ul>
               <p><strong>Tools</strong></p>
           <ul>
  
  
  
  1.14      +2 -0      jakarta-velocity/docs/ymtd/ymtd-generation.html
  
  Index: ymtd-generation.html
  ===================================================================
  RCS file: /home/cvs/jakarta-velocity/docs/ymtd/ymtd-generation.html,v
  retrieving revision 1.13
  retrieving revision 1.14
  diff -u -r1.13 -r1.14
  --- ymtd-generation.html	2001/07/31 21:44:09	1.13
  +++ ymtd-generation.html	2001/08/01 01:10:13	1.14
  @@ -92,6 +92,8 @@
   </li>
                       <li>    <a href="../differences.html">VM/WM Differences</a>
   </li>
  +                    <li>    <a href="../casestudy1.html">Case Study 1</a>
  +</li>
                   </ul>
               <p><strong>Tools</strong></p>
           <ul>
  
  
  
  1.13      +2 -0      jakarta-velocity/docs/ymtd/ymtd-hosting.html
  
  Index: ymtd-hosting.html
  ===================================================================
  RCS file: /home/cvs/jakarta-velocity/docs/ymtd/ymtd-hosting.html,v
  retrieving revision 1.12
  retrieving revision 1.13
  diff -u -r1.12 -r1.13
  --- ymtd-hosting.html	2001/07/31 21:44:09	1.12
  +++ ymtd-hosting.html	2001/08/01 01:10:13	1.13
  @@ -92,6 +92,8 @@
   </li>
                       <li>    <a href="../differences.html">VM/WM Differences</a>
   </li>
  +                    <li>    <a href="../casestudy1.html">Case Study 1</a>
  +</li>
                   </ul>
               <p><strong>Tools</strong></p>
           <ul>
  
  
  
  1.16      +2 -0      jakarta-velocity/docs/ymtd/ymtd-implementation.html
  
  Index: ymtd-implementation.html
  ===================================================================
  RCS file: /home/cvs/jakarta-velocity/docs/ymtd/ymtd-implementation.html,v
  retrieving revision 1.15
  retrieving revision 1.16
  diff -u -r1.15 -r1.16
  --- ymtd-implementation.html	2001/07/31 21:44:09	1.15
  +++ ymtd-implementation.html	2001/08/01 01:10:13	1.16
  @@ -92,6 +92,8 @@
   </li>
                       <li>    <a href="../differences.html">VM/WM Differences</a>
   </li>
  +                    <li>    <a href="../casestudy1.html">Case Study 1</a>
  +</li>
                   </ul>
               <p><strong>Tools</strong></p>
           <ul>
  
  
  
  1.15      +2 -0      jakarta-velocity/docs/ymtd/ymtd-javabeans.html
  
  Index: ymtd-javabeans.html
  ===================================================================
  RCS file: /home/cvs/jakarta-velocity/docs/ymtd/ymtd-javabeans.html,v
  retrieving revision 1.14
  retrieving revision 1.15
  diff -u -r1.14 -r1.15
  --- ymtd-javabeans.html	2001/07/31 21:44:09	1.14
  +++ ymtd-javabeans.html	2001/08/01 01:10:13	1.15
  @@ -92,6 +92,8 @@
   </li>
                       <li>    <a href="../differences.html">VM/WM Differences</a>
   </li>
  +                    <li>    <a href="../casestudy1.html">Case Study 1</a>
  +</li>
                   </ul>
               <p><strong>Tools</strong></p>
           <ul>
  
  
  
  1.16      +2 -0      jakarta-velocity/docs/ymtd/ymtd-sampleapp.html
  
  Index: ymtd-sampleapp.html
  ===================================================================
  RCS file: /home/cvs/jakarta-velocity/docs/ymtd/ymtd-sampleapp.html,v
  retrieving revision 1.15
  retrieving revision 1.16
  diff -u -r1.15 -r1.16
  --- ymtd-sampleapp.html	2001/07/31 21:44:09	1.15
  +++ ymtd-sampleapp.html	2001/08/01 01:10:13	1.16
  @@ -92,6 +92,8 @@
   </li>
                       <li>    <a href="../differences.html">VM/WM Differences</a>
   </li>
  +                    <li>    <a href="../casestudy1.html">Case Study 1</a>
  +</li>
                   </ul>
               <p><strong>Tools</strong></p>
           <ul>
  
  
  
  1.16      +2 -0      jakarta-velocity/docs/ymtd/ymtd-saying-hello.html
  
  Index: ymtd-saying-hello.html
  ===================================================================
  RCS file: /home/cvs/jakarta-velocity/docs/ymtd/ymtd-saying-hello.html,v
  retrieving revision 1.15
  retrieving revision 1.16
  diff -u -r1.15 -r1.16
  --- ymtd-saying-hello.html	2001/07/31 21:44:09	1.15
  +++ ymtd-saying-hello.html	2001/08/01 01:10:13	1.16
  @@ -92,6 +92,8 @@
   </li>
                       <li>    <a href="../differences.html">VM/WM Differences</a>
   </li>
  +                    <li>    <a href="../casestudy1.html">Case Study 1</a>
  +</li>
                   </ul>
               <p><strong>Tools</strong></p>
           <ul>
  
  
  
  1.15      +2 -0      jakarta-velocity/docs/ymtd/ymtd-taglibs.html
  
  Index: ymtd-taglibs.html
  ===================================================================
  RCS file: /home/cvs/jakarta-velocity/docs/ymtd/ymtd-taglibs.html,v
  retrieving revision 1.14
  retrieving revision 1.15
  diff -u -r1.14 -r1.15
  --- ymtd-taglibs.html	2001/07/31 21:44:09	1.14
  +++ ymtd-taglibs.html	2001/08/01 01:10:13	1.15
  @@ -92,6 +92,8 @@
   </li>
                       <li>    <a href="../differences.html">VM/WM Differences</a>
   </li>
  +                    <li>    <a href="../casestudy1.html">Case Study 1</a>
  +</li>
                   </ul>
               <p><strong>Tools</strong></p>
           <ul>
  
  
  
  1.15      +2 -0      jakarta-velocity/docs/ymtd/ymtd.html
  
  Index: ymtd.html
  ===================================================================
  RCS file: /home/cvs/jakarta-velocity/docs/ymtd/ymtd.html,v
  retrieving revision 1.14
  retrieving revision 1.15
  diff -u -r1.14 -r1.15
  --- ymtd.html	2001/07/31 21:44:09	1.14
  +++ ymtd.html	2001/08/01 01:10:13	1.15
  @@ -92,6 +92,8 @@
   </li>
                       <li>    <a href="../differences.html">VM/WM Differences</a>
   </li>
  +                    <li>    <a href="../casestudy1.html">Case Study 1</a>
  +</li>
                   </ul>
               <p><strong>Tools</strong></p>
           <ul>
  
  
  
  1.29      +19 -26    jakarta-velocity/xdocs/index.xml
  
  Index: index.xml
  ===================================================================
  RCS file: /home/cvs/jakarta-velocity/xdocs/index.xml,v
  retrieving revision 1.28
  retrieving revision 1.29
  diff -u -r1.28 -r1.29
  --- index.xml	2001/07/31 21:44:09	1.28
  +++ index.xml	2001/08/01 01:10:14	1.29
  @@ -53,8 +53,9 @@
   
   <section name="Velocity News">
   <p>
  -<strong>Article in JavaWorld on Velocity</strong>
  +<strong>3 published articles covering Velocity</strong>
   </p>
  +
   <blockquote>
   Many people believe that Velocity can only be used in the context of web
   applications. This excellent <a
  @@ -63,46 +64,38 @@
   such that it can be used in a myriad of applications.
   </blockquote>
   
  -<p>
  -<strong> 2 Products Now Depend on Velocity </strong>
  -</p>
  -<blockquote>
  -Both Gentleware and Xadra have built products which depend on Velocity.
  -We have listed them on our ever expanding <a
  -href="./powered.html">Powered By Velocity</a> page.
  -</blockquote>
  -
  -<p>
  -<strong> 4 Web Frameworks Now Support Velocity </strong>
  -</p>
   <blockquote>
  -Melati, a tool for building Java-programmed websites backed by a database, 
  -now supports Velocity with their recent 0.54 release.  For more information
  -visit the <a href="http://www.melati.org/">Melati site</a>.
  +The Java Developer Journal recently <a
  +href="http://www.sys-con.com/java/articlea.cfm?id=1080">published</a> an
  +edited version of the <a href="./ymtd/ymtd.html">YMTD article</a> by Jon
  +Stevens as the cover story for their July edition.
   </blockquote>
   
   <blockquote>
  -Also, Maverick, a lightweight MVC framework which allows a wide variety of
  -view templating options, has added support for Velocity as of version 0.9.5.
  -For more information, visit the <a href="http://mav.sourceforge.net">Maverick site</a>.
  +  The Sun <i>Dot-Com Builder</i> developer information site has a "Best Practices" product profile on Velocity.  Check it out 
  +  <a href=" http://dcb.sun.com/practices/profiles/velocity.jsp">here</a>.  Thanks Sun!
   </blockquote>
   
  +<p>
  +<strong> 3 Products Now Depend on Velocity </strong>
  +</p>
   <blockquote>
  -Melati and Maverick join Jakarta's <a href="http://jakarta.apache.org/turbine/">Turbine</a> project,
  -as well as the <a href="http://jpublish.sourceforge.net">JPublish</a> web publishing
  -framework in supporting Velocity 'out of the box'.  
  +Gentleware, Xadra and Vamp have built products which depend on Velocity.
  +We have listed them on our ever expanding <a
  +href="./powered.html">Powered By Velocity</a> page.
   </blockquote>
   
   <p>
  -<strong> Sun's <i>Dot-Com Builder</i> Profiles Velocity</strong>
  +<strong> 4 Web Frameworks Now Support Velocity </strong>
   </p>
  -
   <blockquote>
  -  The Sun <i>Dot-Com Builder</i> developer information site has a "Best Practices" product profile on Velocity.  Check it out 
  -  <a href=" http://dcb.sun.com/practices/profiles/velocity.jsp">here</a>.  Thanks Sun!
  +Turbine, JPublish, Melati and Maverick all support Velocity.
  +We have listed them on our ever expanding <a
  +href="./powered.html">Powered By Velocity</a> page.
   </blockquote>
   
    </section>
  + 
    <section name="What is Velocity?">
   
    <p>
  
  
  
  1.6       +23 -1     jakarta-velocity/xdocs/powered.xml
  
  Index: powered.xml
  ===================================================================
  RCS file: /home/cvs/jakarta-velocity/xdocs/powered.xml,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -r1.5 -r1.6
  --- powered.xml	2001/06/29 18:10:26	1.5
  +++ powered.xml	2001/08/01 01:10:14	1.6
  @@ -56,6 +56,17 @@
       </td>
      </tr>
   
  +   <tr>
  +    <td>
  +     <a href="http://www.geocities.com/vamp201/index.html">Venus Application Publisher (Vamp)</a>
  +    </td>
  +    <td>
  +      Venus Application Publisher is a user-friendly tool that helps you
  +      package, sign and publish Java (TM) Network Launching Protocol
  +      (JNLP) software.
  +    </td>
  +   </tr>
  +
    </table>
    
    </section>
  @@ -137,7 +148,7 @@
       </td>
      </tr>
   
  - <tr>
  +   <tr>
       <td>
        <a href="http://www.adeptra.com">www.adeptra.com</a>
       </td>
  @@ -147,6 +158,17 @@
       </td>
       <td>
        <a href="http://www.adeptra.com">Adeptra Inc.</a>
  +    </td>
  +   </tr>
  +
  +   <tr>
  +    <td>
  +     <a href="http://www.discuss.gr">www.discuss.gr</a>
  +    </td>
  +    <td>
  +     Online discussion forumm site built using Turbine and Velocity.
  +    </td>
  +    <td>
       </td>
      </tr>
   
  
  
  
  1.1                  jakarta-velocity/xdocs/casestudy1.xml
  
  Index: casestudy1.xml
  ===================================================================
  <?xml version="1.0"?>
  
  <document>
  
   <properties>
    <title>Case Study: JSP vs. Velocity</title>
    <author email="jon@latchkey.com">Velocity Documentation Team</author>
   </properties>
  
  <body>
  
  <section name="Case Study: JSP vs. Velocity">
  
  <source><![CDATA[
  I just wanted to share my findings on Velocity. I use velocity as an
  embedded mail templating system in our application server.
  
  When I began this subproject, I was using JSP as the language for
  generating template output for our application server. It was
  horrible. There were many problems, not to mention the difficulty of
  embedding a servlet engine in the app server that I could
  communicate with through direct method calls instead of over a
  socket. Specific to the Velocity argument was the JSP template
  versus the VTL template. I'd like to show you what my JSP template
  looked like. Package names have been changed to protect the
  innocent. Here is an example:
  
  ----------------8<---------------
  
  <%@ page session="false"
          import="java.util.*,
          foo.events.*,
          foo.emeeting.*,
          foo.validation.*,
          foo.util.actionevent.ActionEvent,
          java.util.Date"%>
  
  <jsp:useBean id="meeting" scope="request" type="foo.IMeeting"
  class="foo.Meeting"/>
  
  <html>
  
  <!-- etc -->
  
  <table width="600" border="0" cellspacing="0" cellpadding="4" 
      bgcolor="white">
  <tr>
  <td>
  <%
  Iterator            events = meeting.getStoredEventsIterator();
  int                 repId = 0;
  
  %>
  <i><b>Topic: <%= meeting.getTopic()%></b></i>
  <p>
  <%
  while (events.hasNext()) {
    Object event = events.next();
    Participation yapper =
  meeting.getParticipation(((MeetingEvent)event).getFromId());
    if(event instanceof ChatEvent) {
      if("R".equals(yapper.getRole()) ) {
  %>
  <font color="#000000"><b><%=yapper.getName()%>:</b></font>
  <%
        repId = yapper.getParticipantId();
      } else {
  %>
  <font color="#0000f0"><b><%=yapper.getName()%>:</b></font>
  <%
      }
      ChatEvent ce = (ChatEvent) event;
  %>
  <br>
  <%
    } else if(event instanceof URLPushedEvent) {
      if("R".equals(yapper.getRole()) ) {
  %>
  <font color="#000000"><b><%=yapper.getName()%>:</b></font>
  <%
      } else {
  %>
  <font color="#0000f0"><b><%=yapper.getName()%>:</b></font>
  <%
      }
      URLPushedEvent pe = (URLPushedEvent) event;
  %>
  <a href="<%=pe.getStoredData()%>">"<%=pe.getStoredData()%>"</a> <br>
  <%
    }
  }
  %>
  <hr>
  <br><%=meeting.getMeetingId()%>:<%=repId%><br>
  </td>
  </tr>
  </table>
  </div>
  </body>
  </html>
  
  ----------------8<---------------
  
  Seasick yet? Now here is the Velocity template accomplishing the
  same thing as above:
  
  ----------------8<---------------
  
  <html>
  
  <!-- etc -->
  
  <table width="600" border="0" cellspacing="0" cellpadding="4" 
      bgcolor="white">
  <tr>
  <td>
  <i><b>Topic: $meeting.getTopic()</b></i><p>
  
  #foreach( $event in $meeting.getStoredEventsIterator() )
    #set( $yapper = $meeting.getParticipation($event.getFromId()) )
    #if( $event.getClass().getName().equals($urlEvent) )
      #if( $repRole.equals($yapper.getRole()) )
        #set( $repId = $yapper.getParticipantId() )
        <font color="$blk"><b>$yapper.getName()</b></font>
      #else
        <font color="$blu"><b>$yapper.getName()</b></font>
      #end
      <a href="$event.getStoredData()">$event.getStoredData()</a> <br>
    #elseif( $event.getClass().getName().equals($chatEvent) )
      #if($repRole.equals($yapper.getRole()) )
        #set( $repId = $yapper.getParticipantId() )
        <font color="$blk"><b>$yapper.getName()</b></font>
      #else
        <font color="$blu"><b>$yapper.getName()</b></font>
      #end
      $event.getStoredData() <br>
    #end
  #end
  <hr>
  <br>$meeting.getMeetingId():$repId<br>
  </td>
  </tr>
  </table>
  </div>
  </body>
  </html>
  
  ----------------8<---------------
  
  I was subsequently able to define that largish foreach loop into a
  macro and shrink it even more, using Velocity's #macro function, so
  I could do this:
  
  #drawStandardHtmlTranscript ( $meeting )
  
  removing 20 lines of code from each template whilst only adding 2
  lines (one for #parse and the other for the
  #drawStandardHtmlTranscript.
  
  The call to the Velocity runtime to finally merge the template
  consumes about 20-50 milleseconds (on a 400 mHz PII Linux system)
  when I pool the contexts (time doubles when I do not). This is great
  performance, too!
  
  Last but not least, teaching the web design team to write a template
  took literally 10 minutes from start to finish. They haven't asked
  me a single question since.
  
  -- 
  Nick Bauman
  Software Engineer
  3600 Dupont
  Minneapolis, MN
  55412
  Mobile Phone: (612) 810-7406
  Home Phone: (612) 522-0165
  ]]></source>
  
  </section>
  
  </body>
  </document>
  
  
  
  1.12      +1 -0      jakarta-velocity/xdocs/stylesheets/project.xml
  
  Index: project.xml
  ===================================================================
  RCS file: /home/cvs/jakarta-velocity/xdocs/stylesheets/project.xml,v
  retrieving revision 1.11
  retrieving revision 1.12
  diff -u -r1.11 -r1.12
  --- project.xml	2001/07/31 21:44:09	1.11
  +++ project.xml	2001/08/01 01:10:14	1.12
  @@ -35,6 +35,7 @@
       <menu name="Comparisons">
           <item name="YMTD"                   href="/ymtd/ymtd.html"/>
           <item name="VM/WM Differences"      href="/differences.html"/>
  +        <item name="Case Study 1"           href="/casestudy1.html"/>
       </menu>
       <menu name="Tools">
           <item name="Anakia"                 href="/anakia.html"/>