You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@turbine.apache.org by qu...@apache.org on 2003/04/28 23:34:25 UTC

cvs commit: jakarta-turbine-site/xdocs/further-reading index.xml j2ee-integration.xml model2+1.xml pullmodel.xml

quintonm    2003/04/28 14:34:24

  Modified:    xdocs    index.xml navigation.xml news.xml
               xdocs/common documentation.xml license.xml powered.xml
  Added:       xdocs    download.xml getinvolved.xml turbine-concepts.xml
               xdocs/further-reading index.xml j2ee-integration.xml
                        model2+1.xml pullmodel.xml
  Log:
  This is the restructuring of the web site as proposed by Chris Chew.  The
  most noticable changes include making most of the documentation accessible
  from the main Turbine site (jakarta-turbine-site), A complete rewrite of the
  Turbine Documentation Project page, and moving the documentation that was
  duplicated between the various versions but was not version specific into
  this module.
  
  Good work Chris!
  
  Revision  Changes    Path
  1.17      +9 -15     jakarta-turbine-site/xdocs/index.xml
  
  Index: index.xml
  ===================================================================
  RCS file: /home/cvs/jakarta-turbine-site/xdocs/index.xml,v
  retrieving revision 1.16
  retrieving revision 1.17
  diff -u -r1.16 -r1.17
  --- index.xml	11 Apr 2003 00:32:56 -0000	1.16
  +++ index.xml	28 Apr 2003 21:34:23 -0000	1.17
  @@ -22,7 +22,7 @@
     </p>
     
     <p>
  -    Turbine is an excellent choice for developing applications that can use a 
  +    Turbine is an excellent choice for developing applications that make use of a 
       services-oriented architecture. Some of the functionality
       provided with Turbine includes a security management system, a 
       scheduling service, XML-defined form validation server,
  @@ -34,25 +34,27 @@
       The Turbine core is free of any dependency on a presentation layer 
       technology. Both JavaServer Pages (JSP) and 
       <a href="http://jakarta.apache.org/velocity/">Velocity</a> are supported 
  -    inside Turbine.  For developers that are already familiar with JSP, or have
  +    inside Turbine.  For developers already familiar with JSP, or have
       existing JSP tag libraries, Turbine offers support for the Sun standard. 
       Velocity is the favorite view technology of most users of the Turbine 
       framework; try it out and see if Velocity can help you develop your 
  -    web applications quicker and work more easily with non-programming designers.
  +    web applications faster and work more easily with non-programming designers.
     </p>
   
     <p>
  -    Turbine is developed in an open and participatory environment and
  +    Turbine is developed in an open, participatory environment and
       released under the <a href="http://www.apache.org/licenses">Apache
       Software License</a>. Turbine is intended to be a collaboration of the
       best-of-breed developers from around the world.  We invite you to
       participate in this open development project.  To learn more about getting
  -    involved, <a href="/site/getinvolved.html">click here</a>.
  +    involved, <a href="getinvolved.html">click here</a>.
     </p>
   
  -<subsection name="Downloads and Versions">
  +</section>
  +
  +<section name="Downloads and Versions">
     <p>
  -    <a href="http://jakarta.apache.org/builds/jakarta-turbine/turbine-2/release/2.2/"><strong>Turbine 2.2.0</strong></a> is
  +    <a href="download.html"><strong>Turbine 2.2.0</strong></a> is
       the current production quality release.
     </p>
     <p>
  @@ -62,14 +64,6 @@
       no longer support freemarker, webmacro and castor. So if you use one of 
       these legacy services you should switch to the supported Velocity, JSP, or Torque.
     </p>
  -  <p>
  -    <a href="http://jakarta.apache.org/turbine/turbine-3/"><strong>Turbine 3.0</strong></a> 
  -    is an experimental development tree currently unscheduled for release.
  -    It is not recommended for use.  We are currently working on backporting many of the 
  -    features from this version into Turbine 2.x.
  -  </p>
  -</subsection>
  -
   </section>
   
   <section name="Torque">
  
  
  
  1.14      +26 -16    jakarta-turbine-site/xdocs/navigation.xml
  
  Index: navigation.xml
  ===================================================================
  RCS file: /home/cvs/jakarta-turbine-site/xdocs/navigation.xml,v
  retrieving revision 1.13
  retrieving revision 1.14
  diff -u -r1.13 -r1.14
  --- navigation.xml	11 Apr 2003 00:33:48 -0000	1.13
  +++ navigation.xml	28 Apr 2003 21:34:23 -0000	1.14
  @@ -6,38 +6,48 @@
   
       <body>
       <links>
  -      <item name="Turbine"                 href="/"/>
         <item name="Fulcrum"                 href="/fulcrum/"/>
         <item name="TDK"                     href="/tdk/"/>
         <item name="JCS"                     href="/jcs/"/>
  -      <item name="Turbine Wiki"            href="/common/wiki.html"/>
       </links>
   
  -    <menu name="Turbine">
  -        <item name="Front Page"            href="/index.html"/>
  +    <menu name="General Information">
  +        <item name="Overview"                         href="/index.html"/>
  +        <item name="Turbine Concepts"                 href="/turbine-concepts.html"/>
  +        <item name="Further Reading"                  href="/further-reading/index.html"/>
           <item name="News and Status"       href="/news.html"/>
  -        <item name="Download"		       href="http://jakarta.apache.org/builds/jakarta-turbine/"/>
  +        <item name="Sites Using Turbine"              href="/common/powered.html"/>
  +        <item name="License"                          href="/common/license.html"/>
  +        <item name="Download"		                  href="/download.html"/>
       </menu>
   
  -    <menu name="Documentation">
  -        <item name="Turbine 2.2"           href="/turbine-2.2.1/index.html"/>
  -        <item name="Turbine 2.3 Development Info"     href="/turbine-2.3/index.html"/>
  +    <menu name="Turbine Documentation">
  +        <item name="Core DB Schema"                   href="/turbine-2.2.1/turbine-db-schema.html"/>
  +        <item name="How-To's"                         href="/turbine-2.2.1/howto/index.html"/>
  +        <item name="Services"                         href="/turbine-2.2.1/services/index.html"/>
  +        <item name="JavaDocs"                         href="/turbine-2.2.0/apidocs/"/>
  +    </menu>
  +
  +    <menu name="Turbine Wiki Shortcuts">
  +        <item name="Turbine Wiki Home"                href="http://nagoya.apache.org/wiki/apachewiki.cgi?Turbine2"/>
  +        <item name="Frequently Asked Questions (FAQ)" href="http://nagoya.apache.org/wiki/apachewiki.cgi?JakartaTurbine2Faq"/>
  +        <item name="Tutorial"                         href="http://nagoya.apache.org/wiki/apachewiki.cgi?JakartaTurbine2Tutorial"/>
  +        <item name="User's Guide"                     href="http://nagoya.apache.org/wiki/apachewiki.cgi?JakartaTurbine2UsersGuide"/>
  +        <item name="Development"                      href="http://nagoya.apache.org/wiki/apachewiki.cgi?JakartaTurbine2/Development"/>
  +    </menu>
  +
  +    <menu name="Turbine Sub Projects">
           <item name="Fulcrum"               href="/fulcrum/index.html"/>
           <item name="TDK"                   href="/tdk/index.html"/>
           <item name="JCS"                   href="/jcs/index.html"/>
  -        <item name="Turbine Wiki"          href="/common/wiki.html"/>
       </menu>
   
  -    <menu name="Get Involved">
  -        <item name="Powered by Turbine"    href="/common/powered.html"/>
  -        <item name="License"               href="/common/license.html"/>
  -    </menu>
  -    
       <menu name="Development">
  +        <item name="Turbine 2.3 Development Info"     href="/turbine-2.3/index.html"/>
  +        <item name="Getting Involved"                 href="/getinvolved.html"/>
           <item name="Coding Specification"  href="/common/code-standards.html"/>
           <item name="Developer Links"       href="/common/developer-links.html"/>
  -        <item name="Documentation"         href="/common/documentation.html"/>
  -        <item name="Further Reading"       href="/common/further-reading.html"/>
  +        <item name="Improving Documentation"          href="/common/documentation.html"/>
       </menu>
       
       </body>
  
  
  
  1.18      +1 -1      jakarta-turbine-site/xdocs/news.xml
  
  Index: news.xml
  ===================================================================
  RCS file: /home/cvs/jakarta-turbine-site/xdocs/news.xml,v
  retrieving revision 1.17
  retrieving revision 1.18
  diff -u -r1.17 -r1.18
  --- news.xml	25 Feb 2003 20:04:25 -0000	1.17
  +++ news.xml	28 Apr 2003 21:34:23 -0000	1.18
  @@ -8,7 +8,7 @@
   
   <body>
   
  -<section name="News &amp; Status">
  +<section name="News And Status">
   
   <h4>15 January 2003 - Turbine Article</h4>
   <p>
  
  
  
  1.1                  jakarta-turbine-site/xdocs/download.xml
  
  Index: download.xml
  ===================================================================
  <?xml version="1.0"?>
  <document>
  
    <properties>
      <author email="chris@fenetics.com">Chris Chew</author>
      <title>Downloading Jakarta Turbine</title>
    </properties>
  
  <body>
  
  <section name="Getting Started With Turbine">
    <p>
      Currently, the best way to get started with Turbine is to use the
      <a href="tdk/index.html">Turbine Development Kit (TDK)</a>.
    </p>
  </section>
  
  <section name="Binary And Source Distributions">
    <p>
      If you already know how to use Turbine and simply want the latest
      binaries or source, you can find them
      <a href="http://jakarta.apache.org/builds/jakarta-turbine/turbine-2/">here</a>.
    </p>
  </section>
  
  <section name="Getting The Development Source From CVS">
    <p>
      You can check out the latest source from the Jakarta CVS module.
      Information on connecting to the Jakarta repositories is found 
      <a href="http://jakarta.apache.org/site/cvsindex.html">here</a>.
      Turbine resides in the jakarta-turbine-2 module:
      </p>
      <source><![CDATA[cvs -d :pserver:anoncvs@cvs.apache.org:/home/cvspublic login
  password: anoncvs
  cvs -d :pserver:anoncvs@cvs.apache.org:/home/cvspublic checkout jakarta-turbine-2]]></source>
  </section>
  
  <section name="Building The Source">
    <p>
      Be sure and read the README.txt file for instructions on how to build Turbine.
      Turbine uses <a href="http://maven.apache.org">Maven</a> as its 
      build system, and building is as simple as running 'maven' or 'maven jar'
      at the top of the source directory.
    </p>
  </section>
  </body>
  </document>
  
  
  
  1.1                  jakarta-turbine-site/xdocs/getinvolved.xml
  
  Index: getinvolved.xml
  ===================================================================
  <?xml version="1.0"?>
  <document>
  
    <properties>
      <author email="chris@fenetics.com">Chris Chew</author>
      <title>Getting Involved</title>
    </properties>
  
  <body>
  
  <section name="Getting Involved In The Development Of Turbine">
  
  </section>
  
  <section name="Getting Involved In The Development Of Jakarta">
  
  </section>
  
  </body>
  
  </document>
  
  
  
  1.1                  jakarta-turbine-site/xdocs/turbine-concepts.xml
  
  Index: turbine-concepts.xml
  ===================================================================
  <?xml version="1.0"?>
  
  <document>
  
   <properties>
    <title>Turbine Concepts</title>
    <author email="jeff@greenninja.com">Jeff Linwood</author>
   </properties>
  
  <body>
  
  <section name="Turbine Concepts - Introduction">
  
  
  <p>Looking for a modern web application architecture for your
  Java development? Turbine is an open source server-side Java framework from
  the Jakarta Apache project. Any recent servlet container can be used to run your
  Turbine application. The developer distribution of Turbine (the TDK) includes
  the servlet runner Tomcat 4.0, also from the Jakarta Apache project. Almost
  any web application that uses persistence should also use a relational
  database. Turbine supports most major commercial and open source relational
  databases and provides an object-relational mapping layer, known as Torque. Of
  course, the biggest advantage of Turbine is that it is free, and all of the
  source code is available to you, the application developer.</p>
  
  
  
  <p>A quick guide to Turbine technologies:</p>
  
  <ul>
   <li>Presentation layer - Velocity or JSP</li>
   <li>Database layer - Torque and Peers</li>
   <li>Sample application - Flux</li>
   <li>HTML Form Validation - Intake</li>
   <li>Logging - Log4j and the Logging Service in Turbine 2</li>
   <li>Services - Known as Fulcrum in Turbine 3</li>
  </ul>
  
  
  
  <p>Applications built with Turbine are encouraged to follow the
  Model-View-Controller (MVC) architecture. In the Model-View-Controller design
  pattern, the Model is the business logic and stored data, the View is the user
  interface, and the Controller handles application flow and manages the Model
  and the Views.</p>
  
  
  
  <p>I'm going to explain how Turbine technology maps to MVC in
  this article, after defining some core Turbine concepts. The Turbine architecture
  encourages developers to separate business logic from presentation and
  application flow. If you use the Turbine framework, your code will be much
  easier to maintain as a result.</p>
  </section>
  
  <section name="How does Turbine fit in with other server side Java technologies">
  
  
  
  <p>The Turbine framework is a normal Java application that uses
  servlets for handling web users. It is meant to be run under a servlet
  container, and you can write your own custom servlets that load Turbine objects
  and access Turbine singletons.</p>
  
  
  
  <p>Turbine's presentation layer can be used with Java Server Pages
  (JSP) or Velocity. Most Java developers working with web applications have
  some experience with JSP already. Velocity is available from the Jakarta Apache
  project, and is open source. I discuss how to choose between Velocity and JSP
  for your project later in this article.</p>
  
  
  
  <p>Turbine can be used with Enterprise Java Beans (EJB).
  Turbine would be a client of your EJB system, just like a Swing application.
  This is most useful if you already have a system built that uses Enterprise
  Java Beans, or if parts of your system need to be distributed on different
  servers. You would probably build a new Turbine service to access your EJB
  system. Turbine does not require the use of EJB session or entity beans.</p>
  
  </section>
  
  <section name="Torque Object-Relational Persistence layer">
  
  
  
  <p>Torque is a database persistence toolkit that Turbine uses. Most
  open source and commercial relational databases are supported by Torque,
  although you will generally have to supply your own JDBC driver. Torque can be
  used by itself, in applications that don't use other Turbine classes. </p>
  
  
  
  <p>Torque will have to be set up for use with your database. You
  will have to specify the name of your project, the type of database you use,
  and your JDBC connection parameters. </p>
  
  
  
  <p>Your business objects will need to be modeled in XML to be
  used with Torque. The project-schema.xml file will contain a description of
  your database. You will need to describe your application's tables, columns,
  indexes, and foreign keys. Generally, your business objects will map to a table,
  and each field on the object will map to a column.</p>
  
  
  
  <p>Torque can be used to generate primary key IDs for each
  table in your database. Torque has three different choices for generating
  IDs. The native method uses the internal unique ID generation facility of your
  database. The idbroker method asks the Turbine IDBroker service for a unique
  ID. The advantage of the idbroker method over the native method is that it is
  not dependent on which database Turbine uses. Torque can also be told not to
  generate any primary keys, with the none keyword.</p>
  
  
  
  <p>Torque creates a SQL data schema for your database. For
  some databases, Torque can execute this schema on your database to create the
  tables for you. Torque also generates Java object source files for you. For
  each table, Torque creates four different classes, two Peer classes and two
  Data Object classes. One of the Peer classes and one of the Data Object
  classes are Base classes. These are generated by Torque, and shouldn't be
  edited. Instead, Torque provides you with two classes that extend each of the
  Base classes. You should add your business logic to the subclasses. The Peer
  classes correspond to the database table, and are static. The Data Object
  classes represent an individual row of a table. The table columns become
  JavaBean properties that can be used with standard getter and setter methods.</p>
  
  </section>
  <section name="Turbine Services">
  
  
  <p>Turbine Services are the back-end of the application
  framework. Each Turbine Service is implemented as a singleton class that can
  use Turbine's central configuration utility. These Services only have one
  state that all requesting clients share. </p>
  
  
  
  <p>Because each Service is used through an interface, Service
  implementations are pluggable. This is extremely useful if you extend an
  existing Service with your own functionality. All classes that use that
  built-in Service will be able to use your new Service. </p>
  
  
  
  <p>Almost every large Turbine project will need to create some
  of its own Services. Your new Service should have an interface that extends the
  Initable and Service interfaces. Your Service implementation class should
  implement your interface and extend the TurbineBaseService class. The easiest
  way to create a Service is taking an existing service that is close to what you
  are trying to accomplish and rewriting the parts that don't fit. For instance,
  if you were creating a SOAP Service, the XML-RPC Service that comes with
  Turbine would be a good starting point.</p>
  
  
  
  <p>Turbine comes with over 25 built-in Services. Here is a
  brief overview of the some of the included Services:</p>
  
  
  
  <ul>
   <li>IntakeService - Provides web form validation and automatic
       mapping of data to a bean. All of your input forms can be easily
       validated, and all of the tedious code that maps HTML form parameters to
       setter methods on a Bean is done for you. Intake is configured with a
       single XML file.</li>
   <li>UploadService - Manages file uploads from HTML widgets.</li>
   <li>XSLTService - Transforms XML documents with XSLT
       stylesheets. This service can cache compiled stylesheets for extra
       performance.</li>
   <li>>SecurityService - Manages users and permissions for
       Turbine. I discuss this Service in more detail in the next section,
       &quot;Users and Security&quot;</li>
  </ul>
  
  
  
  
  </section>
  <section name="Users and Security">
  
  
  
  <p>Turbine comes with a security model and several security
  helper classes. In Turbine 2, the user security is contained in the
  org.apache.turbine.services.security package and its sub-packages. </p>
  
  
  
  <p>Turbine's security model has four interfaces:</p>
  
  <ul>
   <li>User</li>
   <li>Group</li>
   <li>Role</li>
   <li>Permission</li>
  </ul>
  
  
  <p>The User interface is implemented by the TurbineUser class.
  Each account in your application should be a TurbineUser object. </p>
  
  
  
  <p>The Group is not a collection of users. Instead, the Group
  is a resource or context that permissions are assigned to. Imagine that your
  application has two different sections, User Administration and Server Administration.
  Some users may be assigned permissions for one section, other users may be
  assigned the same permissions for the other section. The Group allows you to
  use the same permission name for different parts of the application.</p>
  
  
  
  <p>The Role is a collection of Permissions. A Role can be made
  up of more than one Permission object, and it is a convenient way to organize
  Permissions. A good example would be an Administrator Role that contains Edit
  User, Delete User, and Add User permissions. </p>
  
  
  
  <p>The Permission controls access. Each individual action or
  item in an application can be assigned a Permission. A User is granted a Permission
  programmatically from within your Turbine code.</p>
  
  </section>
  <section name="Model View Controller (MVC)">
  
  <p>The Model View Controller (MVC) architecture allows the
  developer to separate presentation from business logic, which makes for more
  maintainable code. MVC has been used in traditional GUI programming for years,
  but most of the early web application architectures didn't take advantage of
  this separation. </p>
  
  
  
  <p>Applications that use Java servlets can mix HTML into the
  Java code, requiring a recompile of the application if there are any look and
  feel changes. Sun corrected this problem by creating Java Server Pages (JSP),
  which are similar to Microsoft's Active Server Pages (ASP). An HTML designer
  can change the GUI without touching the Java code embedded into the JSP. Unfortunately,
  JSP doesn't have to conform to the MVC paradigm, so many applications were
  developed with business logic in the JSP pages. Several web application
  frameworks were created to bring MVC to the J2EE world, including Struts and
  Turbine. More information on Struts can be found on its web site at <a
  href="http://jakarta.apache.org/struts">http://jakarta.apache.org/struts</a>.</p>
  
  
  <p>One web application version of MVC is called Model 2. Sun
  created this term to describe J2EE applications that are built with a
  Controller servlet that manages interaction with the View JSPs and the back-end
  Model. </p>
  
  
  
  <p>With Turbine, the Controller is the core TurbineServlet and
  the Action Event Handlers. Actions are used within Turbine to handle any user
  input that requires interaction with the Model. Turbine developers can assign
  different Actions to each input element in an HTML form. Actions aren't tied
  to a specific web page - if you have a common element such as a search form on
  multiple pages, you can use the same Action for each.</p>
  
  
  
  <p>The View in Turbine is the presentation layer, either
  Velocity or JSP. In either case, no business logic should be embedded in the
  View.</p>
  
  
  
  <p>The Model contains the Peers or Services that you use for your
  data source.</p>
  
  <subsection name="Pull model of MVC">
  
  <p>Turbine 2 supports the Pull Model for moving data between
  the Model and the View. The Java programmers that work on the Model can
  create objects called Tools that expose the business logic and objects of the
  Model to the View. Every page or screen in the View will have access to the
  Tools. If the UI programmers that work on the Velocity or JSP files in the
  View want to move functionality inside the page or between pages, they don't
  need to get the Model developers to change any code. This is an extremely
  effective method of separating presentation from data.</p>
  
  
  
  <p>Tool objects can follow the Facade design pattern of providing
  a single unified API for a complicated or disparate set of Model functionality.
  This provides a level of decoupling between the View and the underlying Model.
  If the Model definition changes, only the Tool will need to be modified,
  instead of every presentation page that uses that Model.</p>
  
  
  
  
  </subsection>
  <subsection name="Velocity or JSP">
  
  
  
  <p>Turbine gives developers a choice for which presentation
  language to use. Often times, this can be part of the requirements given to a
  development team. JSP is an established standard from Sun Microsystems, and
  there is a lot of momentum in the marketplace for JSP. From reading many
  anecdotal posts on the Turbine mailing lists, most developers that use Turbine
  prefer Velocity.</p>
  
  
  
  <p>My experience has been with JSP sites that weren't based on
  Turbine, and with projects that used Velocity with Turbine. I feel that
  Velocity is much simpler to work with than JSP, and you won't miss the extra
  power that comes with JSP. One of the core tenets of the MVC design pattern is
  that there shouldn't be any business logic in the View, and most guidelines for
  JSP encourage the use of taglibs over Java scriptlets in your JSP. Velocity is
  a templating language, and it is not possible to execute any embedded Java code
  in your templates.</p>
  
  </subsection>
  </section>
  <section>Getting Started</section>
  
  
  <p>Turbine has a learning curve for new developers, but don't
  let that discourage you from using it for your own projects.</p>
  
  
  
  <p>The Turbine Developer Kit (TDK) contains everything you need
  for getting started with Turbine except Ant and a JDBC-compliant database. Ant
  is an open source Java build tool from the Jakarta Apache Project that Torque
  requires. The Turbine source code can be downloaded from the same location as
  the TDK. </p>
  
  
  
  <p>Complete directions for getting Turbine up and running with
  your database are included with the TDK distribution as /tdk/webapps/site/turbine-docs/howto/tdk-howto.html.</p>
  
  
  
  <p>After you get Turbine running on your computer, explore the
  Flux application installed with the TDK. Flux is a security application built
  with Turbine that lets you manage Users, Groups, Roles, and Permissions. Because
  the source code for Turbine is available, you can trace calls from Flux into
  the Turbine framework.</p>
  
  
  
  <p>You can decide whether to extend Flux for your application,
  or whether it is better to build a Turbine application from scratch. If you need
  user management functionality, it might be better to start with Flux.</p>
  
  
  
  <p>After working with Turbine for a few minutes, a few hours,
  or a few days = you're probably going to get stuck. The best thing to do is to
  check out the Turbine mailing list archives, available in several locations.
  Check the Jakarta Apache mailing list page below, as these archives change
  frequently. You can also download complete copies of every mail sent to any
  Jakarta Apache mailing list, in the MBOX format. This email archive format is
  readable by most Unix mail programs, and Eudora on Windows. </p>
  
  
  
  <p>Turbine-user is the name of the mailing list for developers
  who are using the Turbine framework in their own applications. You may want to
  subscribe yourself to this mailing list. The link to the Jakarta Apache mailing
  lists is below. If you do post your question to the Turbine User list, your
  best chance of getting a response is to include a descriptive title, a short
  description of what you are trying to accomplish and what you tried, and small
  snippets of any relevant code.</p>
  
  
  
  <p>I hope you have fun working with Turbine!</p>
  
  
  <section name="Further Reading">
  
  <p>The Turbine web site is at <a
  href="http://jakarta.apache.org/turbine">http://jakarta.apache.org/turbine</a>.
  The Turbine Developer Kit can be downloaded from this web site.</p>
  
  
  
  <p>A very good tutorial on using Torque is also on the Turbine
  web site, here <a href="http://db.apache.org/torque/tutorial.html">http://jakarta.apache.org/turbine/torque/tutorial.html</a>.
  </p>
  
  
  
  <p>Velocity is available from <a
  href="http://jakarta.apache.org/velocity">http://jakarta.apache.org/velocity</a>.
  Velocity is bundled inside the Turbine Developers Kit, so an extra download
  isn't necessary.</p>
  
  
  
  <p>The Jakarta Apache mailing lists for both Turbine and
  Velocity are at <a href="http://jakarta.apache.org/site/mail.html">http://jakarta.apache.org/site/mail.html</a>.
  </p>
  
  
  <p>Jeff Linwood has been using Turbine to build a web services
  infrastructure application. He is a co-author of <a href="http://www.amazon.com/exec/obidos/ASIN/1861007817/ref=pd_ecc_rvi_1/002-4687840-3104031">Professional Struts Applications</a>, which covers Velocity. He'd like to thank Jason van Zyl, Troy Mutter,
  Skip Walker, David Minter, Jason Pettiss, and his brother Rob Linwood for
  reviewing this article.</p>
  
  </section>
  </body>
  
  </document>
  
  
  
  
  1.6       +159 -194  jakarta-turbine-site/xdocs/common/documentation.xml
  
  Index: documentation.xml
  ===================================================================
  RCS file: /home/cvs/jakarta-turbine-site/xdocs/common/documentation.xml,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -r1.5 -r1.6
  --- documentation.xml	11 Mar 2003 18:46:27 -0000	1.5
  +++ documentation.xml	28 Apr 2003 21:34:23 -0000	1.6
  @@ -3,218 +3,183 @@
   <document>
   
    <properties>
  -  <title>The Turbine Documentation Project</title>
  -  <author email="criley@ekmail.com">Cameron Riley</author>
  -  <author email="jon@latchkey.com">Jon S. Stevens</author>
  -  <author email="mpoeschl@marmot.at">Martin Poeschl</author>
  -  <author email="dlr@finemaltcoding.com">Daniel Rall</author>
  -  <author email="jeff@greenninja.com">Jeff Linwood</author>
  +  <title>The Turbine Documentation Effort</title>
  +  <author email="chris@fenetics.com">Chris K. Chew</author>  
    </properties>
   
   <body>
   
  -<section name="Turbine Documentation Project">
  +<section name="The Turbine Documentation Effort">
   
  +  <subsection name="Documentation Roadmap">
   <p>
  -The Turbine Documentation Project is the process of documenting Turbine, inside
  -and out, for the user community. Open source projects live and die by their
  -community participation, as a software project is more than just source code.
  -Other components such as documentation have an important role in the process.
  -As Software Engineers tend towards the habit of communicating in code,
  -documentation is often skimped on, which can alienate the new or less
  -experienced user. This component of the Turbine project will formalise the
  -common and shared knowledge of the Turbine community into documentation for
  -Software Engineers, Students, Hobbyists and interested passers-by alike. This
  -however requires participation from all members of the Turbine User community.
  +      We are working very hard to improve Turbine's documentation.  Our weakest
  +      area is introductory material for new users.  Currently, the best resource
  +      is the turbine-user mailing list.  Although almost every question has
  +      clear answers found in the list archives, it is time-consuming to find them.
   </p>
   
  -</section>
  -
  -<section name="What Can I do to Contribute?">
  -
   <p>
  -Turbine can always improve its documentation, there are many areas that always
  -need attention;
  +      Below is the list of documentation items we are working on listed in order
  +      of priority from greatest to lowest.  We need help with them all!
   </p>
   
   <ul>
  -<li>Correct errors.</li>
  -<li>Correct spelling mistakes.</li>
  -<li>Replace out of date information.</li>
  -<li>Improve existing documentation.</li>
  -<li>Add new documentation.</li>
  +      <li>
  +        <b>Improve the presentation of our current documentation</b>
  +        <ul><!-- FOR SPACING --></ul>
  +      </li>
  +      <li>
  +        <b>Turbine 2.3 Release Changes Summary And Migration Steps</b>
  +        <UL>
  +          <li>Describe how Turbine uses Avalon</li>
  +          <li>Steps needed for migrationing from 2.2</li>
  +          <li>Currently in the wiki at <a href="http://nagoya.apache.org/wiki/apachewiki.cgi?JakartaTurbine2/Migrating_From_2.2">JakartaTurbine2/Migrating From 2.2</a></li>
  +          <li>When stable, move it to xdoc</li>
  +        </UL>
  +      </li>
  +      <li>
  +        <b>Quick Start Tutorial</b>
  +        <UL>
  +          <li>Based on a simple sample application</li>
  +          <li>May or may not involve a TDK</li>
  +          <li>Currently in the wiki at <a href="http://nagoya.apache.org/wiki/apachewiki.cgi?JakartaTurbine2Tutorial">JakartaTurbine2Tutorial</a></li>
  +          <li>When stable, move it to xdoc and prepare a release</li>
  +        </UL>
  +      </li>
  +      <li>
  +        <b>Complete User's Guide</b>
  +        <UL>
  +        <li>Currently in the wiki at <a href="http://nagoya.apache.org/wiki/apachewiki.cgi?JakartaTurbine2UsersGuide">JakartaTurbine2UsersGuide</a></li>
  +        <li>Eventually in Xdoc, Forrest, or some other format</li>
  +        </UL>
  +      </li>
  +      <li>
  +        <b>Turbine Architecture Diagram</b>
  +        <UL>
  +        <li>High level diagram of Services, Layouts, Navigations, TurbineServlet, Action, Screens, etc</li>
  +        <li>Should be a picture showing distinct layers</li>
  +        </UL>
  +      </li>
  +      <li>
  +        <b>Clear Road Map of the Turbine Project</b>
  +        <UL>
  +          <li>Future Features and Enhancements</li>
  +          <li>The future of Fulcrum</li>
  +          <li>Currently in the wiki at <a href="http://nagoya.apache.org/wiki/apachewiki.cgi?JakartaTurbine2/Development">JakartaTurbine2/Development</a></li>        
  +        </UL>
  +      </li>
   </ul>
  -
  -<p>
  -There are more specific and immediate documentation needs in the TODO section
  -below. If you are looking for an aspect of Turbine to start learn and document
  -immediately, the ToDo is a good start. Documenting has the added advantage, that
  -it is an excellent way to learn Turbine in detail and become an advanced Turbine
  -user!
  +  </subsection>
  +  
  +  <subsection name="Our Documentation Has Three States">
  +    <ol>
  +      <li>
  +        <strong>Infancy:</strong>  A document becomes nascent in the Wiki
  +        as an empty or sparsely populated page.  At this point, people continue to
  +        add and revise the content until it becomes mostly stable and unchanging.
  +        <ul><!-- FOR SPACING --></ul>
  +      </li>
  +      <li>
  +        <strong>Stability:</strong>  Once the document has reached a stable point, it is converted into the xdoc
  +        format and injected into the jakarta-turbine-site or jakarta-turbine-2 cvs modules.
  +        <ul><!-- FOR SPACING --></ul>
  +      </li>
  +      <li>
  +        <strong>Maturity:</strong>   As changes to the Turbine Framework are made, the documentation
  +        is updated and improved via xdoc patches from the <a href="http://scarab.werken.com/scarab/issues/">Scarab bug tracking system</a>.
  +        <ul><!-- FOR SPACING --></ul>
  +      </li>
  +    </ol>
  +  </subsection>
  +
  +  <subsection name="How You Can Help">
  +<p>
  +      Now that you know what we are working on, you need to know the best ways to help.
  +      Content is farmed and stabilized on the <a href="wiki.html">Turbine Wiki</a>
  +      until it is stable enough to become official documentation.  Additionally 
  +      questions are answered and re-answered on the turbine-user mailing list.  
  +      You can help the Turbine Documentation effort by:
   </p>
  -
  -</section>
  -
  -<section name="Documentation ToDo List">
  -
  -<ul>
  -<li>Fix spelling and grammatical errors.</li>
  -</ul>
  -
   <ul>
  -<li>Turbine and Security - There needs to be more documentation on Security
  -management.</li>
  -<li>Turbine and LDAP - Security with LDAP</li>
  -<li>Turbine and JavaScript - Loading JS files through ContentURI</li>
  -<li>Turbine and JSP - Needs JSP examples.</li>
  -<li>Turbine and Python - Needs Python examples.</li>
  -<li>Turbine and Frames - Needs to be in its own document.</li>
  -</ul>
  -
  -<ul>
  -<li>Screens and Actions - How the Default Screen and Action work.</li>
  -<li>Torque Howto - including OM description</li>
  -<li>Advanced Criteria - needs more description of comparitors and Criterion.
  +      <li>
  +        <strong>Editing The Wiki Content:</strong> Mature and stabilize the information on the <a href="wiki.html">Wiki</a>.
  +        <ul><!-- FOR SPACING --></ul>
  +      </li>
  +      <li>
  +        <strong>Filtering The Mailing List:</strong> When you see something float
  +        by on the mailing list that should become part of the official,
  +        please convert it into the appropriate xdoc format and submit it as an
  +        issue in our <a href="http://scarab.werken.com/scarab/issues/">Scarab bug tracking system</a>.
  +        <ul><!-- FOR SPACING --></ul>
  +      </li>
  +      <li>
  +        <strong>Creating Xdoc Patches:</strong> If you find a typo, mistake or
  +        overlooked information in the official documentation, please create
  +        an issue in our <a href="http://scarab.werken.com/scarab/issues/">Scarab bug tracking system</a>.
  +        <ul><!-- FOR SPACING --></ul>
   </li>
  -<li>Services - Many of the services need documentation.</li>
  -</ul>
  -
  -<p>
  -TDK Howto - Howto or tutorial describing initial app to creating your own
  -schema, OM/peer classes, business objects through to Velocity templates.
  -</p>
  -
  -<p>
  -Plus more .....
  -</p>
  -
  -</section>
  -
  -<section name="Website Documentation">
  -
  -<p>
  -The website documentation is the main component outside of the source code and
  -javadocs. If there are omissions on the website that you think need to be
  -documented or written in, please go ahead and do it.
  -</p>
  -
  -</section>
  -
  -<section name="Turbine and TDK Feature Documentation">
  -
  -<p>
  -Turbine is a complex system with numerous features  The features that make up
  -Turbine all need documenting.
  -</p>
  -
  -</section>
  -
  -<section name="Turbine and TDK Internal Workings Documentation">
  -
  -<p>
  -How the components at the source level work, such as the Assemblers, Services,
  -Actions and Screens, Connection Pooling etc.
  -</p>
  -
  -</section>
  -
  -<section name="Turbine and TDK Tutorials">
  -
  -<p>
  -How to use Turbine with other technologies such as JSP, JBoss etc etc. How to use
  -Torque, how to get a tdk project up and running. How to use the objects in
  -Torque for your projects such as Peers and Criteria.
  -</p>
  -
  -</section>
  -
  -<section name="Filtering Mailing Lists">
  -
  -<p>
  -Monitor mailing lists for common discussions and modify into a format that is
  -suitable for the Turbine Website and xdocs directory, plus adding a few choice
  -comments. From there it can be improved.
  -</p>
  -
  -</section>
  -
  -<section name="Javadocing Source Code">
  -
  -<p>
  -Javadocing the source code where it is missing, incomplete or can be described
  -better. As this is an opensource project the source code is open to all who wish
  -to view it, having well documented, clean, understandable code is important.
  -</p>
  -
  -</section>
  -
  -<section name="Getting Started">
  -
  -<p>
  -To get started, read all the current documentation and find an area that you
  -know a bit about. If that area isn't covered, you can improve Turbine by
  -documenting it. Write up the document, no matter how skeletal and email it to
  -the Turbine-Users-List, making sure you are subscribed first. All documentation
  -of any kind is greatly appreciated.
  -</p>
  -
  -<p>
  -The documentation is maintained as XML in the
  -jakarta-turbine-<i>project</i>/xdocs directories, and is transformed
  -to HTML for the website documentation.
  -</p>
  -
  -</section>
  -
  -<section name="Building the Docs">
  -
  -<p>
  -To build the HTML docs you need to <a
  -href="http://jakarta.apache.org/site/jakarta-site2.html">check out the
  -jakarta-site2 project from CVS</a>.
  -</p>
  -
  -<p>
  -You will also need all the Turbine sub-projects, as they are built
  -automatically by Turbine's site module.
  -
  -<ul>
  -<li>jakarta-turbine-2</li>
  -<li>jakarta-turbine-3</li>
  -<li>jakarta-turbine-torque</li>
  -<li>jakarta-turbine-fulcrum</li>
  -<li>jakarta-turbine-tdk</li>
  -<li>jakarta-turbine-site</li>
   </ul>
  -</p>
  -
  -<p>
  -When building jakarta-turbine-site, the generated documentation from
  -all other repositories are copied to the
  -<code>jakarta-turbine-site/docs/</code> directory, providing one
  -comprehensive set of documentation for the website.  Run the build as
  -follows:
  -</p>
  -
  -<source><![CDATA[
  -ant docs
  -]]></source>
  -
  -<p>
  -This will transform all the XML files in the
  -<code>jakarta-turbine-<i>project</i>/xdocs</code> directories into
  -HTML files in the <code>docs</code> directory.  Validation errors may
  -be thrown while processing, and will provide a line number for the XML
  -file where the markup is incorrect. Usually, the cause of the error is
  -something minor like an unclosed tag, unescaped XML entity, or a
  -spelling error in a tag.
  -</p>
  -
  -<p>
  -If you are a committer, don't forget to update the web-site. <br/>
  -<strong>Make sure your umask is set to 002!</strong>
  -</p>
  +  </subsection>
   
  +  <subsection name="Getting The Documentation Source And Making A Patch">
  +    <ol>
  +      <li>
  +<p>
  +          <strong>Get The Source:</strong>
  +          Check out the latest source from the Jakarta CVS module.  You can learn
  +          about the Jakarta repositories <a href="http://jakarta.apache.org/site/cvsindex.html">here</a>.
  +          The Turbine documentation resides in the jakarta-turbine-site module:
  +</p>
  +        <source><![CDATA[cvs -d :pserver:anoncvs@cvs.apache.org:/home/cvspublic login
  +password: anoncvs
  +cvs -d :pserver:anoncvs@cvs.apache.org:/home/cvspublic checkout jakarta-turbine-site]]></source>
  +      </li>
  +      <li>
  +<p>
  +          <strong>Build The Site:</strong>
  +          The documenation is built using <a href="http://maven.apache.org/">Maven</a>,
  +          with the following command:
  +</p>
  +        <source><![CDATA[maven site:generate]]></source>
  +
  +<p>
  +          Afterwards, you should get something like:
  +</p>
  +        <source><![CDATA[BUILD SUCCESSFUL
  +Total time:  20 seconds]]></source>
  +
  +<p>
  +          You will find the built HTML in $PATH_TO_MODULE/target/docs.
  +</p>
  +      </li>
  +
  +      <li>
  +        <strong>Make Your Changes:</strong>
  +        The docs are written using the Anakia Xdoc format, which you can learn about <a href="http://jakarta.apache.org/site/jakarta-site-tags.html">here</a>.
  +        The source files are found in the $PATH_TO_MODULE/xdocs directory, each xml file corresponding to the generated html file.
  +        Menu information is found in the navigation.xml files.
  +        <ul><!-- FOR SPACING --></ul>
  +      </li>
  +
  +      <li>
  +        <strong>Make A Patch:</strong>
  +        <source><![CDATA[cvs diff -rNu > name_of_patch.patch]]></source>
  +        <ul><!-- FOR SPACING --></ul>
  +      </li>
  +
  +      <li>
  +        <strong>Submit Your Changes:</strong>
  +        We use <a href="http://scarab.tigris.org">Scarab</a> to track issues.  Once
  +        you have a patch, log in to our <a href="http://scarab.werken.com/scarab/issues/">Scarab instance</a>
  +        and create a new issue in the Turbine->Documentation module.  A project committer will approve the patch
  +        and apply it, or let you know if something should be changed.
  +        <ul><!-- FOR SPACING --></ul>
  +      </li>
  +
  +      <li><strong>Thank you for helping out!</strong></li>
  +    </ol>
  +  </subsection>
   </section>
   
   </body>
  
  
  
  1.2       +54 -55    jakarta-turbine-site/xdocs/common/license.xml
  
  Index: license.xml
  ===================================================================
  RCS file: /home/cvs/jakarta-turbine-site/xdocs/common/license.xml,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- license.xml	1 Aug 2001 18:55:57 -0000	1.1
  +++ license.xml	28 Apr 2003 21:34:23 -0000	1.2
  @@ -9,61 +9,60 @@
   <body>
   <section name="Apache Software License">
   
  -<source test=""><![CDATA[
  -/* ====================================================================
  - * The Apache Software License, Version 1.1
  - *
  - * Copyright (c) 2001 The Apache Software Foundation.  All rights
  - * reserved.
  - *
  - * Redistribution and use in source and binary forms, with or without
  - * modification, are permitted provided that the following conditions
  - * are met:
  - *
  - * 1. Redistributions of source code must retain the above copyright
  - *    notice, this list of conditions and the following disclaimer.
  - *
  - * 2. Redistributions in binary form must reproduce the above copyright
  - *    notice, this list of conditions and the following disclaimer in
  - *    the documentation and/or other materials provided with the
  - *    distribution.
  - *
  - * 3. The end-user documentation included with the redistribution,
  - *    if any, must include the following acknowledgment:
  - *       "This product includes software developed by the
  - *        Apache Software Foundation (http://www.apache.org/)."
  - *    Alternately, this acknowledgment may appear in the software itself,
  - *    if and wherever such third-party acknowledgments normally appear.
  - *
  - * 4. The names "Apache" and "Apache Software Foundation" and 
  - *    "Apache Turbine" must not be used to endorse or promote products 
  - *    derived from this software without prior written permission. For 
  - *    written permission, please contact apache@apache.org.
  - *
  - * 5. Products derived from this software may not be called "Apache",
  - *    "Apache Turbine", nor may "Apache" appear in their name, without 
  - *    prior written permission of the Apache Software Foundation.
  - *
  - * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
  - * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
  - * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
  - * DISCLAIMED.  IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
  - * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  - * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  - * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
  - * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
  - * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
  - * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
  - * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  - * SUCH DAMAGE.
  - * ====================================================================
  - *
  - * This software consists of voluntary contributions made by many
  - * individuals on behalf of the Apache Software Foundation.  For more
  - * information on the Apache Software Foundation, please see
  - * <http://www.apache.org/>.
  - */
  -]]></source>
  +<pre>
  +====================================================================
  +The Apache Software License, Version 1.1
  +Copyright (c) 2001 The Apache Software Foundation.  All rights
  +reserved.
  +
  +Redistribution and use in source and binary forms, with or without
  +modification, are permitted provided that the following conditions
  +are met:
  +
  +1. Redistributions of source code must retain the above copyright
  +   notice, this list of conditions and the following disclaimer.
  +
  +2. Redistributions in binary form must reproduce the above copyright
  +   notice, this list of conditions and the following disclaimer in
  +   the documentation and/or other materials provided with the
  +   distribution.
  +
  +3. The end-user documentation included with the redistribution,
  +   if any, must include the following acknowledgment:
  +      "This product includes software developed by the
  +       Apache Software Foundation (http://www.apache.org/)."
  +   Alternately, this acknowledgment may appear in the software itself,
  +   if and wherever such third-party acknowledgments normally appear.
  +
  +4. The names "Apache" and "Apache Software Foundation" and 
  +   "Apache Turbine" must not be used to endorse or promote products 
  +   derived from this software without prior written permission. For 
  +   written permission, please contact apache@apache.org.
  +
  +5. Products derived from this software may not be called "Apache",
  +   "Apache Turbine", nor may "Apache" appear in their name, without 
  +   prior written permission of the Apache Software Foundation.
  +
  +THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
  +WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
  +OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
  +DISCLAIMED.  IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
  +ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  +SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  +LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
  +USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
  +ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
  +OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
  +OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  +SUCH DAMAGE.
  +====================================================================
  +
  +This software consists of voluntary contributions made by many
  +individuals on behalf of the Apache Software Foundation.  For more
  +information on the Apache Software Foundation, please see
  +http://www.apache.org.
  +
  +</pre>
   
   </section>
   </body>
  
  
  
  1.11      +7 -11     jakarta-turbine-site/xdocs/common/powered.xml
  
  Index: powered.xml
  ===================================================================
  RCS file: /home/cvs/jakarta-turbine-site/xdocs/common/powered.xml,v
  retrieving revision 1.10
  retrieving revision 1.11
  diff -u -r1.10 -r1.11
  --- powered.xml	11 Feb 2003 19:11:40 -0000	1.10
  +++ powered.xml	28 Apr 2003 21:34:23 -0000	1.11
  @@ -8,20 +8,16 @@
   
    <body>
   
  - <section name="Turbine powered web sites">
  - <p>
  -  This is a list of public web sites that are created using Turbine
  -  platform. This, of course, is by no means a complete listing of all
  -  of the Turbine powered web sites.
  - </p>
  -
  + <section name="Turbine-Powered Web Sites">
    <p>
    <img src="../images/powered-by-logo.gif" alt="powered-by-logo.gif" width="112" height="32" />
    </p>
   
    <p>
  -  If you want your Turbine powered site listed here, please post a message on
  -  the Turbine
  +  Here is a list of public web sites built atop the Turbine
  +  framework. This is by no means a complete listing of all
  +  of the Turbine-powered web sites.  If you have a site to be listed here,
  +  please post a message on the Turbine-user
     <a href="http://jakarta.apache.org/site/mail.html">mailing list</a>.
    </p>
   
  @@ -226,9 +222,9 @@
     </table>
    </section>
   
  - <section name="Web sites using Turbine technology">
  + <section name="Websites Using Turbine Technology">
    <p>
  -  These web sites make use of Turbine features without having built
  +  The websites below make use of Turbine technologies without having built
     their entire site around Turbine.
    </p>
   
  
  
  
  1.1                  jakarta-turbine-site/xdocs/further-reading/index.xml
  
  Index: index.xml
  ===================================================================
  <?xml version="1.0"?>
  
  <document>
  
    <properties>
      <title>Turbine Further Reading</title>
      <author email="gonzalo.diethelm@inamecom">Gonzalo A. Diethelm</author>
      <author email="jeff@greenninja.com">Jeff Linwood</author>
      <author email="chris@fenetics.com">Chris K. Chew</author>
    </properties>
  
    <body>
  
    <section name="Further Reading">
  
      <subsection name="Turbine Concepts">
        <ul>
          <li>
            <a href="j2ee-integration.html">Turbine With J2EE</a>
            - A discussion of how Turbine can be used in a J2EE project.
            <ul><!-- FOR SPACING --></ul>
          </li>
          <li>
            <a href="pullmodel.html">Pull Model Vs. Push Model</a>
            - How and why the view piece of an MVC framework should pull data
            rather than a controller pushing data to the view.
            <ul><!-- FOR SPACING --></ul>
          </li>
          <li>
            <a href="model2+1.html">Model 2+1</a>
            - A discussion of how Turbine follows and extends the Model-View-Controller pattern.
            <ul><!-- FOR SPACING --></ul>
          </li>
        </ul>
      </subsection>
  
      <subsection name="Articles On Turbine And Related Projects">
      <ul>
        <li>
          <a href="http://www.vsj.co.uk/articles/display.asp?id=122">High Velocity Web Application Design</a>
          - Cranking out your next scalable web application with Turbine, the new Web Services workhorse.
          By Sing Li.
          <em>Published in VSJ; January 15, 2003.</em>
          <ul><!-- FOR SPACING --></ul>
        </li>
        <li>
          <a href="http://www.javaworld.com/javaworld/jw-10-2002/jw-1011-maven.html">Maven Article</a>
          - Maven ties together tools for better code management.
          By Jeff Linwood.
          <em>Published in JavaWorld; October 11, 2002.</em>
          <ul><!-- FOR SPACING --></ul>
        </li>
        <li>
          <a href="http://www.javaworld.com/javaworld/jw-12-2001/jw-1228-velocity.html">Velocity Introduction</a>
          - Start up the Velocity Template Engine.
          By Geir Magnusson, Jr.
          <em>Published in JavaWorld; December 28, 2001.</em>
          <ul><!-- FOR SPACING --></ul>
        </li>
      </ul>
      </subsection>
  
      <subsection name="Related Jakarta Apache Projects">    
      <ul>
        <li>
          <a href="http://jakarta.apache.org/velocity">Velocity</a> -  A view 
          technology comparable to JSP) that Turbine officially supports. Many 
          Turbine developers feel Velocity is an excellent alternative
          to JSP for web application development.
          <ul><!-- FOR SPACING --></ul>
        </li>
        <li>
          <a href="http://jakarta.apache.org/jetspeed">Jetspeed</a> - An open source 
          portal engine built on top of the Turbine web application framework.  Use 
          Jetspeed to develop a ready-to-go portal solution with open technology.
          <ul><!-- FOR SPACING --></ul>
        </li>
        <li>
          <a href="http://jakarta.apache.org/log4j">Log4j</a> - A standard logging
          framework used by Turbine and many other projects.
          No more commenting System.out.println()'s in your code!
          <ul><!-- FOR SPACING --></ul>
        </li>
      </ul>
      </subsection>
      
      <subsection name="Related Apache Projects">
      <ul>
        <li>
          <a href="http://maven.apache.org">Maven</a> - A Java 
          project management and project comprehension tool. Maven is based on the 
          concept of a project object model (POM) in that all the artifacts produced 
          by Maven are a result of consulting a well defined model for your project.
          <ul><!-- FOR SPACING --></ul>
        </li>
        <li>
          <a href="http://db.apache.org/torque/">Torque</a> - A persistence layer. 
          Torque includes a generator to generate all the database resources required 
          by your application and includes a runtime environment to run the generated 
          classes.
          <ul><!-- FOR SPACING --></ul>
        </li>
      </ul>
      </subsection>
       
      <subsection name="Related Links">
      <ul>
        <li>
          <a href="http://www.waferproject.org/index.html">WAFER</a> - A
          web application framework comparison project exploring
          the many web application frameworks available and 
          makes a comparison.
          <ul><!-- FOR SPACING --></ul>
        </li>
      </ul>
      </subsection>
       
      <subsection name="Viewpoints on JSP">
      <ul>
        <li>
          <a href="http://jakarta.apache.org/velocity/ymtd/ymtd.html">You Make The Decision</a>
          - John Stevens' article comparing Velocity to JSP.
          <ul><!-- FOR SPACING --></ul>
        </li>
        <li>
          <a href="http://www.servlets.com/soapbox/problems-jsp.html">Problems with JSP</a>
          - Jason Hunter's article discussing common issues with JSP.
          <ul><!-- FOR SPACING --></ul>
        </li>
      </ul>
      </subsection>
  
    </section>
  </body>
  </document>
  
  
  
  1.1                  jakarta-turbine-site/xdocs/further-reading/j2ee-integration.xml
  
  Index: j2ee-integration.xml
  ===================================================================
  <?xml version="1.0"?>
  
  <document>
  
   <properties>
    <title>J2EE Integration</title>
    <author email="jon@latchkey.com">Jon S. Stevens</author>
    <author email="KimptonC@rabo-bank.com">Chris C. Kimpton</author>
    <author email="chris@fenetics.com">Chris K. Chew</author>
   </properties>
  
  <body>
  
  <section name="J2EE Integration">
  
  <p>
  This document serves to answer a few common questions about integration
  of Turbine with J2EE technologies including Servlets, EJB, Swing, JMS,
  Transactions, JNDI, XML, JDBC, JSP, and Security. The short answer is
  that it is all Java code, and you easily can combine Turbine solutions
  with J2EE solutions in almost any manner.  Turbine is increasingly flexible
  about what pieces you choose to use or discard.
  </p>
  
  <subsection name="How does Turbine work with ... ?">
  <table>
    <tr>
      <td>Servlets</td>
      <td>
  <p>
  Turbine is a servlet. It is also a set of re-usable components assembled into
  a framework.  Most of Turbine's components can be used in your own Servlets.
  It is normal for projects to start off with a
  simple servlet, tacking on various components like Connection Pooling,
  Cron Schedulers, User Management, Services, etc.  That is what we have
  done as well, however we have done with pluggability as a major concern.
  Mix and match for use what you want, Ignore the rest.
  </p>
      </td>
    </tr>
    <tr>
      <td>EJB</td>
      <td>
  <p>
  Turbine provides a framework for developing web applications -
  specifically the front end. EJB provides a framework for developing
  n-tier applications - specifically the back ends - thus Turbine and EJB
  complement each other well at that level.
  </p>
      </td>
    </tr>
    <tr>
      <td>Swing</td>
      <td>
  <p>
  Turbine is the for the web - Swing is not - not applicable.  Although there
  is a new technology <a href="http://swingml.sourceforge.net/">SwingML</a>
  which can be integrated within Turbine.  SwingML describes itself as
  <i>"an effort to create a markup language to render in a web browser 
  JFC/Swing based graphical user interfaces."</i>
  </p>
      </td>
    </tr>
    <tr>
      <td>JMS</td>
      <td>
  <p>
  Turbine provides facilities for plugging in other Services - and thus
  JMS could be plugged in as a service. Even if it isn't plugged
  in through Turbine's Services facilities, you can still put your JMS
  related methods into your code. Turbine doesn't prevent you from calling
  other Java code.
  </p>
      </td>
    </tr>
    <tr>
      <td>Transactions</td>
      <td>
  <p>
  There is nothing in Turbine explicitly using the JTS/JTA - but can use
  EJB and hence these technologies. That belongs in EJB's anyways. :-)
  </p>
      </td>
    </tr>
    <tr>
      <td>JNDI</td>
      <td>
  <p>
  Turbine provides access to JNDI via a Service facility. You can always
  choose to implement your own facility as well (ie: if you have an
  existing code base that you would like to use, Turbine does not stop you
  from using it).
  </p>
      </td>
    </tr>
    <tr>
      <td>XML</td>
      <td>
  <p>
  Turbine provides support for using and working with XML. Again, nothing
  preventing you from using XML within Turbine or even sending XML out
  of Turbine.
  </p>
      </td>
    </tr>
    <tr>
      <td>JDBC</td>
      <td>
  <p>
  Turbine provides good support for working with JDBC through the <a
  href="http://share.whichever.com/village/">Village API</a>, the <a
  href="http://jakarta.apache.org/turbine/torque/user-guide.html">
  Torque Object Relational Tool</a> and its connection
  pooling facilities. The connection pool is not yet fully J2EE
  "compatible" in that it does not support DataSources. However, at some
  point we may choose to implement that. Note, again, Turbine does not
  prevent you from using your own Connection pooling mechanism, we simply
  created one because at the time, we needed one and ours works just fine.
  </p>
      </td>
    </tr>
    <tr>
      <td>JSP</td>
      <td>
  <p>
  Turbine provides excellent support for using JSP in its model of working
  - which is based on the Model 2 style with enhancements, such as solving
  the Action portion of the Model. However, we <a
  href="http://jakarta.apache.org/velocity/ymtd/ymtd.html">strongly
  suggest</a> that you do not use JSP and seek out other alternatives.
  </p>
      </td>
    </tr>
    <tr>
      <td>Security</td>
      <td>
  <p>
  Turbine was created long before J2EE was created. Therefore, we needed
  to implement our own Security Model. This model is based on Users,
  Roles, Permissions and Object Groups. It is an Access Control List (ACL)
  based security scheme and can grow to support nearly any level of access
  control people can come up with. It follows our extensible design
  pattern and you can use Turbine's code as the basis for any additional
  security your application requires.
  </p>
      </td>
    </tr>
    <tr>
      <td>Container Managed Security</td>
      <td>
  <p>
  You can use container managed security if you wish, and Turbine provides you with
  mechanism for application manged security, in case you need them.
  </p>
  <p>
  The main problem with container managed security is that it cannot be managed
  from the inside of the application. Whenever you want to add/remove users to
  your application (or suite of them) or want to modify user's roles, you need
  to use whatever tool your application server provides for that.
  </p>
  <p>
  Now, this could work just fine for closed-public applications and intranets,
  but would be really unacceptable on open-public sites, where the users need
  the ability to register and receive 'accounts' without human interaction.
  </p>
  <p>
  Currently Turbine supports the latter model - application managed security.
  This is because if it didn't have it, many people would have to write code
  to provide it. That's why we created SecurityService in a cooperative effort.
  </p>
  <p>
  On the other hand, you don't need to write any code to use declarative
  container managed security. You can restrict access to the Turbine
  servlet with the usual web.xml magic. If you wish to use programmatic
  container managed security code, there is relatively very little code to write.
  You need to create your own SecureScreens (probably extending VelocityScreen)
  and SecureActions that contained code that calls the <code>HttpServletRequest
  getUserPrincipal</code> and <code>isUserInRole</code> methods.
  above.
  </p>
      </td>
    </tr>
  </table>
  </subsection>
  
  </section>
  
  </body>
  </document>
  
  
  
  1.1                  jakarta-turbine-site/xdocs/further-reading/model2+1.xml
  
  Index: model2+1.xml
  ===================================================================
  <?xml version="1.0"?>
  
  <document>
   <properties>
    <title>Turbine Model 2+1</title>
    <author email="jon@latchkey.com">Jon S. Stevens</author>
   </properties>
  
  <body>
  
  <section name="What is model 2+1?">
  
  <source test=""><![CDATA[
     To: turbine@list.working-dogs.com
     Subject: Re: Is Turbine MVC or HMVC?
     Date: Wed, 11 Oct 2000 14:04:52 +0200
     From: Christoph Reck Christoph.Reck@dlr.de
  ]]></source>
  
  <p>
  Turbine follows the MVC desing pattern.
  </p>
  <p>
  <ul>
  <li>  Model      - the underlying data sources (via peers or beans)</li>
  <li>  View       - one of the templating engines</li>
  <li>  Controller - Turbine servlet plus your action+screen classes</li>
  </ul>
  </p>
  
  <p>
  Since the view and the controller are tightly coupled in Turbine,
  it is stated to follow the Model2 design pattern, with a + 1
  addition due to way actions are used (hence Model 2 + 1).
  </p>
  
  <p>
  Turbine does not directly support the Hierachical MVC pattern, but
  it cout be used this way by defining multiple module and template
  pathes (would impact performance). Note that in the HMVC each MVC
  instance is self-contained and separable from the rest.
  </p>
  
  <p>
  Note that many components within a MVC system follow themselves
  the MVC pattern, therefore most MVC systems are also HMVC systems
  (this also applies to Turbine as a whole, but your application with
  Turbine is normally not HMVC).
  </p>
  
  <p>
  Also note that you could use Turbine in a non MVC manner, but
  normally it leads you to use it as MVC (which JSP does not).
  </p>
  
  <p>
  I hope this clarifies your question,
  Christoph
  </p>
  
  </section>
  
  <section name="Jon's Comments">
  <p>
  That is a GREAT explanation and I'm going to use that for now on...except it
  isn't entirely true. :-)
  </p>
  
  <p>
  The +1 was a joke on my part to see what people would do with it. I figured
  that people were believing this Model 2 hype with JSP and such and I wanted
  to improve on it. I love playing with marketing games. I read that Model 2
  paper and then figured that Turbine was better than what they declared as
  Model 2.
  </p>
  
  <p>
  Calling it Model 3 would have been like saying that Turbine was just a third
  generation of Model 2. So, instead I figured that making it +1 just made it
  appear to be an improved Model 2 model since that is what Turbine really is.
  :-)
  </p>
  
  <p>
  Oh yea...one more reason for the +1...
  </p>
  
  <p>
  It is the Apache <a href="http://jakarta.apache.org/guidelines/decisions.html">voting style</a>. :-)
  </p>
  
  <p>
  Turbine is Model 2 .......... +1 ! :-)
  </p>
  
  <p>-jon stevens</p>
  </section>
  
  <section name="Resources">
  <p>
  <a href="http://www.javaworld.com/javaworld/jw-12-1999/jw-12-ssj-jspmvc.html">
  Understanding JavaServer Pages Model 2 architecture</a>
  </p>
  
  </section>
  </body>
  </document>
  
  
  
  1.1                  jakarta-turbine-site/xdocs/further-reading/pullmodel.xml
  
  Index: pullmodel.xml
  ===================================================================
  <?xml version="1.0"?>
  
  <document>
   <properties>
    <title>Pull vs. Push</title>
    <author email="jon@latchkey.com">Jon S. Stevens</author>
   </properties>
  
   <body>
  
  <section name="Pull vs. Push">
  
  <p>By: <a href="mailto:jon@latchkey.com">Jon S. Stevens</a>
  <br/>
  $Date: 2003/04/28 21:34:24 $
  </p>
  
  <p>
  This document is to explain a different type of philosophy for working with
  Context based MVC tools like WebMacro (WM) and <a
  href="http://jakarta.apache.org/velocity/">Velocity</a> (V) than I think that
  the Turbine community is used to. The requirement for this philosophy has come
  up recently during <a href="http://scarab.tigris.org/">Scarab</a>
  development and I would like to share and document it with you all. Many thanks
  to Brian B for being patient with me and trying to explain exactly what he wants
  to see. So, let me start off by giving a little bit of history and then moving
  on from there...
  </p>
  
  <p>
  The current encouragement that Turbine gives to developers is to do a mapping
  between one Screen (Java) and one Template (WM or V). The way it works is that
  you build up a Context object that is essentially a Hashtable that contains all
  of the data that is required to render a particular template. Within the
  template, you refer to that data in order to format it for display. I will refer
  to this as the "Push MVC Model." This IMHO is a perfectly acceptable, easy to
  understand and implement approach.
  </p>
  
  <p>
  We have solved the problem of being able to display the data on a template
  without requiring the engineer to make modifications to the Java code. In other
  words, you can modify the look and feel of the overall website without the
  requirement of having a Java engineer present to make the changes. This is
  a very good step forward.
  </p>
  
  <p>
  However, it has a shortcoming in that it makes it more difficult to allow the
  template designer (ie: a non programmer) the ability to move information on a
  template from one template to another template because it would require the
  logic in the Java code to be modified as well. For example, say you have a set
  of "wizard" type screens and you want to change the order of execution of those
  screens or even the order of the fields on those screens. In order to do so, you
  can't simply change the Next/Back links you need to also change the Java code.
  </p>
  
  <p>
  Another example of this is if you have a form on a page and you want to be
  able to split that form across several steps across several pages. In the
  current model, you would have to potentially write/modify several Java classes.
  In reality, this should be something that is easily modifiable by just a single
  template engineer who doesn't necessarily even know Java.
  </p>
  
  <p>
  There are several considerations that one must take into consideration regarding
  the design of a system to provide this level of abstraction. For example, when
  someone submits the form and there is an error. Proper UI would suggest that you
  should re-display the page with the previous form data filled in as well as an
  error message that details the problems. You also need to consider the ability
  to display the same form that may be pre-populated with information from the
  database instead of as an error from the user.
  </p>
  
  <p>
  So, beginning with Scarab, we are going to try another model which I will
  describe as the "Pull MVC Model". What this entails is the ability to create an
  object that is able to "pull" the required information out at execution time
  within the template. Thus, it becomes the job of the template designer to
  understand the API of objects available to him/her to take advantage of.
  </p>
  
  <p>
  Instead of the developer telling the designer what Context names to use for each
  and every screen, there is instead a set of a few objects available for the
  template designer to pick and choose from. These objects will provide methods to
  access the underlying information either from the database or from the
  previously submitted form information.
  </p>
  
  <p>
  Gone are the days where one would have a Java class that would be responsible
  for building the context up for the template. Instead, there would be a single
  base class that places the few objects into the context for every request and
  there is a documented API that the template designer can refer to in order to
  access the information that he/she needs to get at. Of course this information
  is only retrieved when requested and can also be managed in a cache for reuse.
  </p>
  
  <p>
  By moving to a "Pull" model, it becomes possible to more easily achieve complete
  independence from the Java engineers in order to not only change the look and
  feel (UI) of the site but also the information architecture (IA) layout and flow
  of the site.
  </p>
  
  <p>
  While this puts more requirements on the Java engineer to make sure that the
  template designer has a well defined API, it will save the Java engineer many
  hours further down the road when the client requests IA changes because now the
  responsibility is on the template designer to make the changes. Therefore the
  increased initial developer time is justified in order to realize the long term
  goals of the project.
  </p>
  
  <p>
  I hope that this makes sense to everyone. I'm sure that some of you are probably
  saying "well, duh!." However, this is really not the model that has been
  encouraged so far within Turbine nor within other products such as XMLC (which
  actually operates *only* on the Push model), so I believe that it is somewhat
  uncharted territory for some people. The only products that I can think of right
  now that encourage this is JSP taglibs and Tea, however, I still feel as though
  they have missed the boat on this in one way or another.
  </p>
  
  <p>
  Comments are appreciated. Please post them to the Turbine
  <a href="http://jakarta.apache.org/site/mail.html">mailing list</a>.
  </p>
  
  </section>
  
  </body>
  </document>
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: turbine-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: turbine-dev-help@jakarta.apache.org


RE: cvs commit: jakarta-turbine-site/xdocs/further-reading index.xml j2ee-integration.xml model2+1.xml pullmodel.xml

Posted by Chris K Chew <ch...@fenetics.com>.
> From: quintonm@apache.org
>
>   Log:
>   This is the restructuring of the web site as proposed by Chris 
> Chew.  The
>   most noticable changes include making most of the documentation 
> accessible
>   from the main Turbine site (jakarta-turbine-site), A complete 
> rewrite of the
>   Turbine Documentation Project page, and moving the 
> documentation that was
>   duplicated between the various versions but was not version 
> specific into
>   this module.
>   
>   Good work Chris!

Thanks, Quinton!

Ck

---------------------------------------------------------------------
To unsubscribe, e-mail: turbine-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: turbine-dev-help@jakarta.apache.org