struts-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ced...@apache.org
Subject cvs commit: jakarta-struts/contrib/tiles/web/doc/WEB-INF struts-config.xml tiles-examples-defs.xml web.xml
Date Mon, 18 Feb 2002 14:48:40 GMT
cedric      02/02/18 06:48:40

  Modified:    contrib/tiles/web/doc/doc installation.html
               contrib/tiles/web/doc/doc/portal download.jsp news.jsp
                        revisions.jsp welcome.jsp
               contrib/tiles/web/doc/examples/tiles componentsSummary.jsp
                        i18nSummary.jsp multiChannelsSummary.jsp
                        myMenuSettings.jsp rssChannels.jsp
               contrib/tiles/web/doc/layouts menu.jsp
               contrib/tiles/web/doc/test testController.jsp testList.jsp
               contrib/tiles/web/doc/tutorial basicPage.jsp frameset.jsp
               contrib/tiles/web/doc/tutorial/common header.jsp
               contrib/tiles/web/doc/tutorial/invoice editAddress2.jsp
                        editInvoice.jsp editInvoice2.jsp index.jsp
               contrib/tiles/web/doc/tutorial/portal portalBody.jsp
               contrib/tiles/web/doc/WEB-INF struts-config.xml
                        tiles-examples-defs.xml web.xml
  Added:       contrib/tiles/web/doc/examples skinSettings.jsp
               contrib/tiles/web/doc/examples/rssFeed
                        apacheweek-headlines.xml rss-example.xml
               contrib/tiles/web/doc/examples/tiles myLayoutSummary.jsp
                        mySkinSettings.jsp
               contrib/tiles/web/doc/layouts/skin1 menuLeftLayout.jsp
  Log:
  Updated examples after change in Struts1.1 ActionServer
  
  Revision  Changes    Path
  1.4       +266 -163  jakarta-struts/contrib/tiles/web/doc/doc/installation.html
  
  Index: installation.html
  ===================================================================
  RCS file: /home/cvs/jakarta-struts/contrib/tiles/web/doc/doc/installation.html,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- installation.html	28 Sep 2001 16:41:45 -0000	1.3
  +++ installation.html	18 Feb 2002 14:48:39 -0000	1.4
  @@ -1,174 +1,277 @@
  +<table cellspacing="5" width="100%" border="0"><tr><td valign="top"><body>
   
  -	<TABLE>
  -		<TR>
  -			<TD><A name="Prerequisites"></A>
  -				<TABLE border="0" cellspacing="5" cellpadding="5" width="100%">
  -					<TR>
  -						<TD bgcolor="#023264"><FONT color="#ffffff" face="arial,helvetica,sanserif" size="+1"><STRONG>Prerequisite Software</STRONG></FONT>
  -						</TD>
  -					</TR>
  -					<TR>
  -						<TD>
  -						<BLOCKQUOTE>
  -<P>Copyright : This page is largely inspired 
  -              from the original <A href="http://www.apache.com/struts/installation.html">Struts 
  -              installation page</A>. For those familiar with Struts, there is 
  -              nothing realy new.</P>
  -<P>In order to install and use   a binary distribution, you will need to acquire and install several   other software packages, as follows:<BR></P>
  -							<UL>
  -								<LI><STRONG>Java Development Kit</STRONG>- You must download and install       a version 1.1 (or later) Java Development Kit implementation for your       operating system platform.  You<EM>must</EM>have a Java2 version       (JDK 1.2 or later) to build the Struts source distribution, and several       of the custom tags in the Struts library require Java2 to execute.       A good starting point for locating Java Development Kit distributions is<A href="http://java.sun.com/j2se"> http://java.sun.com/j2se</A>.
  -								<LI><STRONG>Struts</STRONG>- You must download and install <A href="http://jakarta.apache.org/struts">Struts</A> , with release greater than 1.0. 
  -                A compatible release of Struts is attached with examples.
  -								<LI><STRONG>Jakarta Commons Packages</STRONG> - Tiles utilizes several
  -      packages from the <A href="http://jakarta.apache.org/commons/">Jakarta
  -      Commons Project</A>.  If you are utilizing a binary distriubtion of
  -      Tiles, the corresponding JAR files are included in the
  -							<CODE>lib</CODE>directory.  However, if you wish to build Tiles from source, you will
  -      need to download and install the following packages:
  -								<UL>
  -									<LI><EM>Beanutils</EM> (Version 1.1 or later)
  -									<LI><EM>Collections</EM> (Version 1.0 or later)
  -									<LI><EM>Digester</EM> (Version 1.1 or later)</LI>
  -								</UL>
  -								<LI><STRONG>Servlet Container</STRONG>- You must download and install a       servlet container that is compatible with the Servlet API Specification,       version 2.2 or later, and the JavaServer Pages (JSP) Specification,       version 1.1 or later.  One popular choice is to download Apache's<A href="http://jakarta.apache.org/tomcat"> Tomcat </A>&nbsp;(version 3.1 or later required, 
  -                version 3.2 or later recommended).
  -								<LI><STRONG>Servlet API Classes</STRONG>- In order to compile Struts itself,       or applications that use Struts, you will need a
  -							<CODE>servlet.jar</CODE>file containing the Servlet and JSP API classes.  Most servlet containers       include this JAR file.  Otherwise, you can get the Servlet API classes distribution from<A href="http://jakarta.apache.org/builds/jakarta-servletapi"> here</A>.
  -								<LI><STRONG>XML Parser</STRONG> - Tiles requires the presence of an XML
  +  <a name="Prerequisites"></a><table width="100%" cellpadding="5" cellspacing="5" border="0"><tr><td bgcolor="#023264"><font size="+1" face="arial,helvetica,sanserif" color="#ffffff"><strong>Prerequisite Software</strong></font></td></tr><tr><td><blockquote>
  +
  +  <p>Copyright : This page is largely inspired from the original
  +    <a href="http://jakarta.apache.org/struts">Struts installation page</a>.
  +    For those familiar with Struts, there is nothing really new.<br></p>
  +
  +  <p>The Tiles binary distribution needs other software packages installed to
  +  operate. You may already have these installed on your system. To build Tiles from
  +  source you may need to acquire and install several others. The complete list is as
  +  follows:<br></p>
  +
  +  <ul>
  +  <li><strong>Java Development Kit</strong> - You <b>must</b> download and install
  +      a Java2 (version 1.2 or later) Java Development Kit implementation for
  +      your operating system platform.
  +      A good starting point for locating Java Development Kit distributions is
  +      <a href="http://java.sun.com/j2se">http://java.sun.com/j2se</a>.</li>
  +
  +  <li><strong>Servlet Container</strong> - You <b>must</b> download and install a
  +      servlet container that is compatible with the Servlet API Specification,
  +      version 2.2 or later, and the JavaServer Pages (JSP) Specification,
  +      version 1.1 or later.  One popular choice is to download Apache's
  +      <a href="http://jakarta.apache.org/tomcat">Tomcat</a> (version 3.1
  +      or later required, version 3.2 or later recommended).</li>
  +
  +  <li><strong>XML Parser</strong> - Tiles <b>requires</b> the presence of an XML
         parser that is compatible with the Java API for XML Parsing (JAXP)
         specification, 1.1 or later.  You can download and install the JAXP
  -      <A href="http://java.sun.com/xml">reference implementation</A>,
  +      <a href="http://java.sun.com/xml">reference implementation</a>,
         which is required for building the Tiles source distribution.  In
  -      Tiles web applications, you may replace the reference
  +      Tiles-based web applications, you may replace the reference
         implementation classes with any other JAXP compliant parser, such as
  -      <A href="http://xml.apache.org/xerces-j">Xerces</A>.  See detailed
  +      <a href="http://xml.apache.org/xerces-j">Xerces</a>.  See detailed
         instructions related to the parser in the instructions for
  -      <A href="#Building">building</A> and <A href="#Installing">installing</A> 
  -                Tiles, below.
  -								<LI><STRONG>Xalan XSLT Processor</STRONG> - If you are building Tiles from
  +      <a href="#Building">building</a> and <a href="#Installing">installing</a>
  +      Tiles, below.</li>
  +
  +  <li><strong>Ant Build System</strong> - If you are building Tiles from the
  +      source distribution, you must download and install version 1.3 or later
  +      of the <a href="http://jakarta.apache.org/ant">Ant</a> build system.
  +      This package is also strongly recommended for use in developing your
  +      own web applications based on Tiles.
  +      <ul>
  +      <li>If you are using the release version of Ant version 1.3, you will
  +          also need to download the "optional.jar" file that contains the
  +          implementation of Ant's <code>&lt;style&gt;</code> command.</li>
  +      <li>Make sure that the "ant" and "ant.bat" scripts are executable, by
  +          adding the $ANT_HOME/bin directory to your PATH environment
  +          variable.</li>
  +      </ul></li>
  +
  +  <li><strong>Servlet API Classes</strong> - In order to compile Tiles itself,
  +      or applications that use Tiles, you will need a <code>servlet.jar</code>
  +      file containing the Servlet and JSP API classes.  Most servlet containers
  +      include this JAR file.  Otherwise, you can get the Servlet API classes
  +      distribution from
  +      <a href="http://jakarta.apache.org/builds/jakarta-servletapi">here</a>.
  +      </li>
  +
  +  <li><strong>Jakarta Commons Packages</strong> - Tiles utilizes several
  +      packages from the <a href="http://jakarta.apache.org/commons/">Jakarta
  +      Commons Project</a>. If you are utilizing a binary distribution of
  +      Tiles, the corresponding JAR files are included in the <code>lib</code>
  +      directory. However, if you wish to build Tiles from source, you will
  +      need to download and install the following packages:
  +      <ul>
  +      <li><em>Beanutils</em> (Version 1.0 or later)</li>
  +      <li><em>Collections</em> (Version 1.0 or later)</li>
  +      <li><em>Digester</em> (Version 1.0 or later)</li>
  +      </ul></li>
  +
  +  <li><strong>Xalan XSLT Processor</strong> - If you are building Tiles from
         the source distribution, you will need a version of Xalan to perform
  -      XSLT transformations.  If you are using the JAXP/1.1 XML parser, you
  -      should use the version of
  -							<CODE>xalan.jar</CODE>shipped with it.
  +      XSLT transformations. If you are using the JAXP/1.1 XML parser, you
  +      should use the version of <code>xalan.jar</code> shipped with it.
         Otherwise, download and install version 1.2 of Xalan from
  -      <A href="http://xml.apache.org/xalan">here</A>.</LI>
  -							</UL></BLOCKQUOTE>
  -						</TD>
  -					</TR>
  -				</TABLE><A name="Building"></A>
  -				<TABLE border="0" cellspacing="5" cellpadding="5" width="100%">
  -					<TR>
  -						<TD bgcolor="#023264"><FONT color="#ffffff" face="arial,helvetica,sanserif" size="+1"><STRONG>Building Tiles Library From Source</STRONG></FONT>
  -						</TD>
  -					</TR>
  -					<TR>
  -						<TD>
  -						<BLOCKQUOTE>
  -<P>You can build Tiles yourself by running ant on provided build.xml file. You need first to set some properties in 
  -build.properties</P></BLOCKQUOTE>
  -						</TD>
  -					</TR>
  -				</TABLE><A name="Installing"></A>
  -				<TABLE border="0" cellspacing="5" cellpadding="5" width="100%">
  -					<TR>
  -						<TD bgcolor="#023264"><FONT color="#ffffff" face="arial,helvetica,sanserif" size="+1"><STRONG>Install A Binary Distribution</STRONG></FONT>
  -						</TD>
  -					</TR>
  -					<TR>
  -						<TD>
  -						<BLOCKQUOTE>
  -<P>First, download a binary 
  -              distribution.&nbsp;  Then, make sure     you have downloaded and installed all of the<A href="#Prerequisites">prerequisite</A>&nbsp;software packages described     above.<BR></P>
  -<P>Unpack the binary distribution into a convenient directory.  The     distribution consists of the following contents:<BR></P>
  -							<UL>
  -								<LI><STRONG>lib/tiles.jar </STRONG>- This JAR file contains all of the         Java classes included in tiles.  It should be copied into the
  -							<CODE> WEB-INF/lib </CODE>directory of your web application.
  -								<LI><STRONG> lib/tiles.tld </STRONG>- This is the "tag library descriptor"         file that describes the custom tags in the Tiles library.  It should         be copied into the
  -							<CODE> WEB-INF </CODE>directory of your web 
  -                application.
  -								<LI><STRONG>lib/extension.tld</STRONG>- This is the "extension 
  -                tag library descriptor" file that describes the extension tags 
  -                which are basically Struts tags, with additional useful 
  -                functionalities for tiles. It should be copied into the
  -							<CODE>WEB-INF</CODE>directory of your 
  -                web application.
  -								<LI><STRONG>webapps/tiles-doc.war</STRONG> - This is a 
  -                "web application archive" file containing all 
  -                  of the documentation and examples. You can install this 
  -                web application on any servlet container  compatible with Servlet API 2.2 or         later. This archive also contains&nbsp; examples from the tutorial (under tiles-doc/tutorial).
  -								<LI><STRONG>webapps/tiles-channel.war</STRONG>   
  -                                                                       - Examples using a custom definition         factory.
  -								<LI><STRONG>webapps/tiles-template.war</STRONG> 
  -                          -&nbsp;Original 
  -                Struts Template example, revisited with Tiles and Instances. You 
  -                can install this web application on any servlet container 
  -                compatible with the Servlet 2.2 (or later) and JSP 1.1 (or 
  -                later) specifications.</LI>
  -							</UL></BLOCKQUOTE>
  -<P>To use Tiles in your own application, you will need to follow     these steps:<BR></P>
  -						<BLOCKQUOTE>
  -							<UL>
  -								<LI>Copy the file
  -							<CODE>lib/tiles.jar </CODE>from the Tiles distribution         into the
  -							<CODE>WEB-INF/lib </CODE>directory of your web application.
  -								<LI>Copy
  -							<CODE>lib/tiles.tld and 
  -                lib/extensions.</CODE><FONT face="Courier New">tld</FONT>from the Tiles distribution into the
  -							<CODE>WEB-INF </CODE>directory         of your web application.
  -								<LI>Modify the
  -							<CODE>WEB-INF/web.xml </CODE>file for your web application         to include a
  -							<CODE>&lt;servlet&gt; </CODE>element to define the         controller servlet, and a
  -							<CODE>&lt;servlet-mapping&gt; </CODE>element         to establish which request URIs are mapped to this servlet.  Use the
  -							<CODE>WEB-INF/web.xml </CODE>file from the 
  -                Struts example application for a detailed example         of the required syntax.
  -								<LI>If you want to use <EM>definitions configuration file</EM>, 
  -                use the modified version of <EM>ActionServlet</EM>        
  -                   , by adding following lines in the
  -							<CODE>WEB-INF/web.xml </CODE>file :
  -							<CODE><BR>&lt;servlet&gt;<BR>&nbsp;&nbsp;&nbsp; 
  -                &lt;servlet-name&gt;action&lt;/servlet-name&gt;<BR>&nbsp;&nbsp;&nbsp; 
  -                &lt;servlet-class&gt;org.apache.struts.tiles.ActionComponentsServlet&lt;/servlet-class<BR>&nbsp;&nbsp;&nbsp; 
  -                &lt;init-param&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
  -                &lt;param-name&gt;definitions-config&lt;/param-name&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
  -                &lt;param-value&gt;/WEB-INF/tilesInstances.xml&lt;/param-value&gt;<BR>&nbsp;&nbsp;&nbsp; 
  -                &lt;/init-param&gt;<BR>...<BR>&nbsp;</CODE>
  -								<LI>If you use <EM>definitions configuration file</EM>, but don't want to 
  -                use modified servlet, you must initialize definitions factory, either 
  -                in your own servlet (see ActionComponentsServlet.java) or at 
  -                begining of page (see tags).
  -								<LI>Modify the
  -							<CODE>WEB-INF/web.xml </CODE>file of your web 
  -                application to include the following tag library 
  -                declarations:<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
  -                &lt;taglib&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
  -                &lt;taglib-uri&gt;/WEB-INF/tiles.tld&lt;/taglib-uri&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
  -                &lt;taglib-location&gt;/WEB-INF/tiles.tld&lt;/taglib-location&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
  -                &lt;/taglib&gt;
  -								<LI>Create a file
  -							<CODE>WEB-INF/struts-config.xml </CODE><FONT face="Courier New"> </FONT>that defines the action         mappings for your specific application.  You can use the
  -							<CODE>struts-config.xml </CODE>file from the portal example application for a detailed example of the required syntax.
  -								<LI>At the top of each JSP page that 
  -                will use the Tiles custom tags, add line(s) declaring 
  -                the Tiles custom tag libraries used on this particular page, 
  -                like this 
  -				
  -							<PRE>&lt;@ taglib uri="/WEB-INF/tiles.tld" prefix="tiles" %&gt;</PRE>
  -								<LI>When compiling the Java classes that comprise your application, be sure         to include the
  -							<CODE>tiles.jar </CODE>file (copied earlier) 
  -                on the CLASSPATH that is submitted to the compiler.</LI>
  -							</UL></BLOCKQUOTE>
  -							
  -<P>Note to Struts1.0 users :<BR></P>
  -  <ul>
  -    <li>Use <CODE>tilesForStruts1.0.jar </CODE>instead of tiles.jar
  +      <a href="http://xml.apache.org/xalan">here</a>.</li>
  +
  +  <li><strong>Struts Framework</strong> - If you are planning to use Tiles with
  +      Struts, you should better download and install Struts from
  +      <a href="http://jakarta.apache.org/struts/">Jakarta
  +      Struts Project</a>. If you have acquired Tiles with the Struts distribution,
  +      you don't need to install it again.
  +      Tiles can run without Struts. In this case you loose some features.
       </li>
  -	<li>Don't use both jar files in the same time</li>
  -	<li><CODE>tilesForStruts1.0.jar </CODE> is located in <CODE>lib/struts1.0 </CODE></li>
     </ul>
   
  -						</TD>
  -					</TR>
  -				</TABLE>
  -			</TD>
  -		</TR>
  -	</TABLE></TD></TR></TABLE>
  \ No newline at end of file
  +  </blockquote></td></tr></table>
  +
  +  <a name="Installing"></a><table width="100%" cellpadding="5" cellspacing="5" border="0"><tr><td bgcolor="#023264"><font size="+1" face="arial,helvetica,sanserif" color="#ffffff"><strong>Install A Tiles Binary Distribution</strong></font></td></tr><tr><td><blockquote>
  +
  +    <p>First, download a binary distribution of Tiles by following the
  +    instructions <a href="index.html#Acquiring">here</a>.  Then, make sure
  +    you have downloaded and installed the
  +    <a href="#Prerequisites">prerequisite</a> software packages described
  +    above.<br></p>
  +
  +    <p>Unpack the Tiles binary distribution into a convenient directory.
  +    (If you <a href="#Building">build Tiles from the source distribution</a>,
  +    the result of the build will already be an unpacked binary distribution
  +    for you). The distribution consists of the following contents:<br></p>
  +
  +    <ul>
  +    <li><strong>lib/tiles.jar</strong> - This JAR file contains all of the
  +        Java classes included in Tiles.  It should be copied into the
  +        <code>WEB-INF/lib</code> directory of your web application.
  +        <em>WARNING</em> - If you are going to be hosting multiple tiles
  +        based applications on the same servlet container, you will be tempted
  +        to place the <code>struts.jar</code> file into the shared repository
  +        supported by your container.  Be advised that this will like cause you
  +        to encounter ClassNotFoundException problems unless <em>all</em> of
  +        your application classes are stored in the shared repository.</li>
  +    <li><strong>lib/tiles.tld</strong> - These is the "tag library
  +        descriptor" file that describe the custom tags in the Tiles
  +        tag libraries.  It should be copied into the <code>WEB-INF</code>
  +        directory of your web application.</li>
  +    <li><strong>webapps/tiles-doc.war</strong> or <strong>webapps/struts-tiles
  +        .war</strong> - This is a
  +        "web application archive" file containing all of the Tiles
  +        documentation found on the
  +        <a href="http://www.lifl.fr/~dumoulin/tiles/">Tiles web site</a>
  +        (including these pages).  You can install this web application
  +        on any servlet container compatible with Servlet API 2.2 or later.</li>
  +    <li><strong>webapps/tiles-channel.war</strong> - Examples using a custom
  +        definition factory.</li>
  +    <li><strong>webapps/tiles-template.war</strong>
  +        - Original Struts Template example, revisited with Tiles
  +        and Instances. You can install this web application on any servlet
  +        container compatible with the Servlet 2.2 (or later) and JSP 1.1
  +        (or later) specifications.</li>
  +    </ul>
  +    <p>To use Tiles in your own application, you will need to follow
  +    these steps:<br></p>
  +    <ul>
  +    <li>Copy the files <code>lib/commons-*.jar</code>
  +        into the <code>WEB-INF/lib</code> directory of your
  +        web application.</li>
  +    <li>Copy the file <code>lib/tiles.jar</code> from the Tiles distribution
  +        into the <code>WEB-INF/lib</code> directory of your web application.
  +        </li>
  +    <li>Copy all of the files that match <code>lib/*.tld</code>
  +        from the Tiles distribution into the <code>WEB-INF</code> directory
  +        of your web application.</li>
  +    <li>If you want to use <i>definitions configuration file</i>, you need to
  +        initialize the definitions factory. This can be done as follow : </li>
  +    <ul>
  +    <li>Modify the <code>WEB-INF/web.xml</code> file for your web application
  +        to use a <code>&lt;servlet&gt;</code> that initialize the factory and
  +        catch Struts action forwards to check for definition name. Use the
  +        <code>WEB-INF/web.xml</code> file from the Tiles example application
  +        for a detailed example of the required syntax.
  +    </li>
  +<pre>
  +  &lt;servlet&gt;
  +     ...
  +     &lt;servlet-name&gt;action&lt;/servlet-name&gt;
  +     &lt;servlet-class&gt;org.apache.struts.tiles.ActionComponentsServlet&lt;/servlet-class
  +     &lt;init-param&gt;
  +       &lt;param-name&gt;definitions-config&lt;/param-name&gt;
  +       &lt;param-value&gt;/WEB-INF/tiles-config.xml&lt;/param-value&gt;
  +     &lt;/init-param&gt;
  +     ...
  +</pre>
  +    <li>Create a configuration file for definitions. Its name must match the one
  +        provided before in <code>WEB-INF/web.xml</code>. Several comma separated
  +        names can be provided.</li>
  +    </ul>
  +    <li>Modify the <code>WEB-INF/web.xml</code> file of your web application
  +        to include the following tag library declarations:</li>
  +    </ul>
  +
  +<pre>&lt;taglib&gt;
  +  &lt;taglib-uri&gt;/WEB-INF/tiles.tld&lt;/taglib-uri&gt;
  +  &lt;taglib-location&gt;/WEB-INF/tiles.tld&lt;/taglib-location&gt;
  +&lt;/taglib&gt;
  +</pre>
  +
  +    <ul>
  +    <li>At the top of each JSP page that will use the Tiles custom tags,
  +        add line(s) declaring the Tiles custom tag libraries used on
  +        this particular page, like this:</li>
  +    </ul>
  +
  +<pre>&lt;%@ taglib uri="/WEB-INF/tiles.tld" prefix="bean" %&gt;
  +</pre>
  +
  +    <ul>
  +    <li>When compiling the Java classes that comprise your application, be sure
  +        to include the <code>tiles.jar</code> and
  +        <code>commons-*.jar</code> files (copied earlier) on the
  +        CLASSPATH that is submitted to the compiler.</li>
  +
  +    </ul>
  +<p>Note to Struts1.0 users :<br></p>
  +    <ul>
  +    <li>Use tilesForStruts1.0.jar instead of tiles.jar</li>
  +    <li>Don't use both jar files in the same time</li>
  +    <li>tilesForStruts1.0.jar is located in lib/struts1.0</li>
  +    </ul>
  +
  +
  +</blockquote></td></tr></table> <a name="Containers"></a><table width="100%" cellpadding="5" cellspacing="5" border="0"><tr><td bgcolor="#023264"><font size="+1" face="arial,helvetica,sanserif" color="#ffffff"><strong>Installing Tiles with your servlet container</strong></font></td></tr><tr><td><blockquote>
  +
  +<p><strong>WARNING</strong> - Do <strong>NOT</strong> add
  +<code>tiles.jar</code> to the classpath of your servlet container in an
  +attempt to avoid placing it in the <code>/WEB-INF/lib</code> directory of
  +each individual web app!  Doing so will cause problems with
  +<code>ClassNotFoundException</code> exceptions.<br></p>
  +
  +<p>For most containers, you need only to: <br></p>
  +<ul>
  +  <li>Copy the WAR files in your Tiles <code>/webapp</code> directory to your
  +    containers <code>webapps</code> directory. </li>
  +  <li>In some cases, you may need to restart your container if it is running.</li>
  +</ul>
  +<h3>Status of various containers</h3>
  +  <p>For status of additional containers, please refer to the
  +   <a href="http://jakarta.apache.org/struts/installation.html#Installing">
  +   Struts installation page</a>).
  +  <br></p>
  +</blockquote></td></tr></table>
  +
  +<a name="Building"></a><table width="100%" cellpadding="5" cellspacing="5" border="0"><tr><td bgcolor="#023264"><font size="+1" face="arial,helvetica,sanserif" color="#ffffff"><strong>Building Tiles From Source</strong></font></td></tr><tr><td><blockquote>
  +
  +    <p>First, download a source distribution of Tiles from
  +     <a href="http://www.lifl.fr/~dumoulin/tiles/">here</a> or
  +     from Struts contrib directory.  Then, make sure
  +    you have downloaded and installed <b>all</b> of the
  +    <a href="#Prerequisites">prerequisite</a> software packages described
  +    above.<br></p>
  +
  +    <p>To build Tiles, you will need to customize the build process to the
  +    details of your development environment as follows:<br></p>
  +    <ul>
  +    <li>The Tiles source distribution uses a file named
  +        <code>build.properties</code> (in the top-level directory of the
  +        distribution) to identify the location of external components
  +        that Tiles depends on.</li>
  +    <li>There is no <code>build.properties</code> file included with the
  +        source distribution.  However, there is an example file named
  +        <code>build.properties.example</code> that you can copy to
  +        <code>build.properties</code> and then customize.</li>
  +    <li>The properties you must configure in <code>build.properties</code> are
  +        documented in <code>build.properties.example</code></li>
  +    <li>Tiles build require a Struts library. You can use either a Struts1.0.x
  +        or 1.1 <code>struts.jar</code>. The resulting <code>tiles.jar</code> will
  +        run with the used <code>struts.jar</code>. You specify the Struts home
  +        with <code>struts.home</code> property.</li>
  +    </ul>
  +
  +    <p>To build a "distribution" version of Tiles, first change your current
  +    directory to the directory in which you have unpacked the Tiles
  +    source distribution, and (if necessary) create or customize the
  +    <code>build.properties</code> file as described above.  Then, type:<br></p>
  +<pre>
  +        ant dist
  +</pre>
  +
  +    <p>This command will create a binary distribution of Tiles, in a
  +    directory named <code>dist</code> (relative to where you
  +    are compiling from).  This directory contains an exact replica of the
  +    files included in a binary distribution of Tiles, as described
  +    in the <a href="Installing">preceding section</a>.<br></p>
  +
  +    <p>IMPORTANT NOTE: The <code>tiles.jar</code>, as well as the JAR files
  +    from the Jakarta Commons project, must be in your classpath when
  +    compiling Tiles. The <code>build.xml</code> provided does this
  +    automatically.  If you use your development machine to test Tiles
  +    application locally, be sure that the <code>tiles.jar</code> is
  +    <strong>NOT</strong> on your classpath when your container is running.
  +    <br></p>
  +
  +  </blockquote></td></tr></table>
  +
  +</body></td></tr></table>
  \ No newline at end of file
  
  
  
  1.8       +72 -24    jakarta-struts/contrib/tiles/web/doc/doc/portal/download.jsp
  
  Index: download.jsp
  ===================================================================
  RCS file: /home/cvs/jakarta-struts/contrib/tiles/web/doc/doc/portal/download.jsp,v
  retrieving revision 1.7
  retrieving revision 1.8
  diff -u -r1.7 -r1.8
  --- download.jsp	27 Dec 2001 17:31:16 -0000	1.7
  +++ download.jsp	18 Feb 2002 14:48:39 -0000	1.8
  @@ -6,23 +6,21 @@
            <tr>
               <td>
                  <p></p>
  +      <DIV align=center><STRONG><EM><FONT size=2>Choose between the latest 
  +      stable release, or the development release.</FONT></EM></STRONG></DIV>
  +      <DIV align=center>&nbsp;</DIV>
  +      <DIV align=center><FONT size=2><STRONG>Stable </STRONG>release build and 
  +      shipped with Struts 1.0.2</FONT></DIV>
                  <div align="center">
  -                  <font size="2"><strong><em>Tiles</em></strong> is also
  -                  distributed with <strong><em>Struts</em></strong>  
  -                  . You can download it by downloading <a href=
  -                  "http://jakarta.apache.org/struts">
  -                  Struts</a>.<br>
  -                   You can also 
  -      download it, and additional resources, from</font> <font size="2">following web sites :</font> </div>
  -               <div align="center">
  -                  <font size="2"> Latest build : 2001 12 26 (with struts 2001 12 26 - 1.1dev)</font> </div>
  +                  <font size="2">        Latest build : 2002 02 18</font> </div>
                  <div align="center">
                     <table border="2">
                        <tr>
                           <td>
                              <p align="center">
  -                              &nbsp;<font color=
  -                              "#ff0000"><strong>Development</strong></font> </p></td>
  +                              &nbsp;<font color="#ff0000"><STRONG>Stable Release<BR></STRONG></font>
  +							  <FONT size=2>build and shipped <BR>with Struts1.0.x</FONT> </p>
  +					    </td>
                           <td>
                              <p align="center">
                                 <font size="2"><strong>binaries<br></strong>(src excluded)</font> </p></td>
  @@ -37,21 +35,21 @@
                           <td>
                              <div align="left">
                                 <a href=
  -                              "http://www.lifl.fr/~dumoulin/tiles/tiles.zip"><strong>
  +                              "http://www.lifl.fr/~dumoulin/tiles/release1_1/tiles.zip"><strong>
                                 tiles.zip</strong></a> </div>
                              <div align="left">
                                 <a href=
  -                              "http://www.lifl.fr/~dumoulin/tiles/tiles.tar.gz">
  +                              "http://www.lifl.fr/~dumoulin/tiles/release1_1/tiles.tar.gz">
                                 <strong>tiles.tar.gz</strong></a> </div></td>
                           <td>
                              <div align="left">
                                 <a href=
  -                              "http://www.lifl.fr/~dumoulin/tiles/tiles-src.zip">
  +                              "http://www.lifl.fr/~dumoulin/tiles/release1_1/tiles-src.zip">
                                 <font size=
                                 "2"><strong>tiles-src.zip</strong></font></a> </div>
                              <div align="left">
                                 <a href=
  -                              "http://www.lifl.fr/~dumoulin/tiles/tiles-src.tar.gz">
  +                              "http://www.lifl.fr/~dumoulin/tiles/release1_1/tiles-src.tar.gz">
                                 <strong><font size=
                                 "2">tiles-src.tar.gz</font></strong></a> 
   </div></td></tr>
  @@ -66,26 +64,76 @@
                           <td>
                              <div align="left">
                                 <a href=
  -                              "http://www.geocities.com/cedricdumoulin/tiles/tiles.zip">
  +                              "http://www.geocities.com/cedricdumoulin/tiles/release1_1/tiles.zip">
                                 <strong>tiles.zip</strong></a> </div>
                              <div align="left">
                                 <strong><a href=
  -                              "http://www.geocities.com/cedricdumoulin/tiles/tiles.tar.gz">
  +                              "http://www.geocities.com/cedricdumoulin/tiles/release1_1/tiles.tar.gz">
                                 tiles.tar.gz</a></strong> </div></td>
                           <td>
                              <div align="left">
                                 <a href=
  -                              "http://www.geocities.com/cedricdumoulin/tiles/tiles-src.zip">
  +                              "http://www.geocities.com/cedricdumoulin/tiles/release1_1/tiles-src.zip">
                                 <font size=
                                 "2"><strong>tiles-src.zip</strong></font></a> </div>
                              <div align="left">
                                 <strong><a href=
  -                              "http://www.geocities.com/cedricdumoulin/tiles/tiles-src.tar.gz">
  +                              "http://www.geocities.com/cedricdumoulin/tiles/release1_1/tiles-src.tar.gz">
                                 <font size=
                                 "2">components-src.tar.gz</font></a></strong> 
             </div></td></tr></table></div>
  -               <div align="center">
  -                  <font color="#ff0000"><strong>WARNING</strong></font> : <font
  -                  size="2">If you have previously use Components, 
  -      you can migrate to Tiles by following this <A href="<%=request.getContextPath()%>/doc/comps2Tiles.html">migration 
  -  path</A>.</font></div></td></tr></table>
  \ No newline at end of file
  +		  
  +      <DIV align=center>&nbsp;</DIV>
  +      <DIV align=center>
  +      <DIV align=center><FONT size=2><STRONG>Development </STRONG>release build 
  +      and shipped with Struts 1.1 dev </FONT></DIV>
  +      <DIV align=center><FONT size=2>Latest build : 2002 02 18 (with struts 2002 02 10 - 1.1dev)</FONT></DIV>
  +      <DIV align=center>
  +		  
  +		  
  +                 <table border="2">
  +                     <tr>
  +                        <td>
  +                           <p align="center">
  +                              &nbsp;<font color="#ff0000"><strong>Development</strong></font> 
  +							  <br>
  +							  <FONT size=2>build and shipped <BR>with Struts1.1dev</FONT> 
  +							  </p></td>
  +                        <td>
  +                           <p align="center">
  +                              <font size="2"><strong>binaries<br></strong>(src excluded)</font> </p></td>
  +                        <td>
  +                           <p align="center">
  +                              <font size="2"><strong>sources</strong></font> </p></td></tr>
  +                     <tr>
  +                        <td>
  +                           <div align="right">
  +                              <font size="2"><strong>Main site :<br></strong>(<a href=
  +                              "http://www.lifl.fr/~dumoulin/tiles">www.lifl.fr</a>)</font> </div></td>
  +                        <td>
  +                           <div align="left">
  +                              <a href=
  +                              "http://www.lifl.fr/~dumoulin/tiles/tiles.zip"><strong>
  +                              tiles.zip</strong></a> </div>
  +                           <div align="left">
  +                              <a href=
  +                              "http://www.lifl.fr/~dumoulin/tiles/tiles.tar.gz">
  +                              <strong>tiles.tar.gz</strong></a> </div></td>
  +                        <td>
  +                           <div align="left">
  +                              <a href=
  +                              "http://www.lifl.fr/~dumoulin/tiles/tiles-src.zip">
  +                              <font size=
  +                              "2"><strong>tiles-src.zip</strong></font></a> </div>
  +                           <div align="left">
  +                              <a href=
  +                              "http://www.lifl.fr/~dumoulin/tiles/tiles-src.tar.gz">
  +                              <strong><font size=
  +                              "2">tiles-src.tar.gz</font></strong></a> 
  +</div></td></tr>
  +    </table></DIV>
  +      <DIV align=center><FONT size=2><FONT size=2><EM><STRONG>Tiles development 
  +      release </STRONG></EM>is also distributed with<STRONG> <EM>Struts 1.1 . 
  +      <BR>   
  +      </EM></STRONG>You can download it by downloading <A 
  +      href="http://jakarta.apache.org/struts"><STRONG><EM>Struts</EM></STRONG></A><STRONG><EM>.</EM></STRONG></FONT></FONT></DIV></DIV></td></tr></table>
  \ No newline at end of file
  
  
  
  1.4       +17 -1     jakarta-struts/contrib/tiles/web/doc/doc/portal/news.jsp
  
  Index: news.jsp
  ===================================================================
  RCS file: /home/cvs/jakarta-struts/contrib/tiles/web/doc/doc/portal/news.jsp,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- news.jsp	27 Dec 2001 17:31:16 -0000	1.3
  +++ news.jsp	18 Feb 2002 14:48:39 -0000	1.4
  @@ -3,6 +3,22 @@
   <th bgcolor="aqua"><font size="+1"><strong>News</strong></font></th></tr>
   <tr>
   <td>
  +      <P><STRONG><EM><FONT color=#ff0000>Tiles-blank application</FONT></EM></STRONG>
  +	  <br><FONT color=#000000 size=2>
  +	  A tiles-blanc.war is now provided to help starting a new project using Tiles.
  +	  </FONT><FONT color=#ff0000><EM><STRONG></STRONG></EM></FONT></P>
  +
  +      <P><FONT color=#ff0000><EM><STRONG>Article on Tiles and 
  +      Struts</STRONG></EM></FONT>
  +	  <br><FONT color=#000000 size=2>
  +	  An article on using Tiles and Struts is available at :
  +	  <br>
  +	  <a href="http://www.javaworld.com/javaworld/jw-01-2002/jw-0104-tilestrut.html" >http://www.javaworld.com/javaworld/jw-01-2002/jw-0104-tilestrut.html</a>
  +	  </FONT></P>
  +      <P><FONT color=#ff0000><EM><STRONG>Dynamic Layout</STRONG></EM></FONT>
  +	  <br><FONT color=#000000 size=2>
  +	  Dynamic layouts allow a user to customize a site L&amp;F. Check the example to see how to proceed with Tiles.
  +	  </FONT></P>
         <P><FONT color=#ff0000><EM><STRONG>New Layout : Tabs</STRONG></EM></FONT>
   	  <br><FONT color=#000000 size=2>
   	  The new tabs layout allows to build easily tabs like page : specify which
  @@ -34,6 +50,6 @@
         <P>
         <FONT size=2>Check "History" for latest modifications (further in this page)</FONT></P>
         <P>
  -      <FONT size=2>Updated 26 Dec. 2001</FONT></P>
  +      <FONT size=2>Updated 12 Jan. 2002</FONT></P>
   	  
   </td></tr></table>
  
  
  
  1.8       +23 -1     jakarta-struts/contrib/tiles/web/doc/doc/portal/revisions.jsp
  
  Index: revisions.jsp
  ===================================================================
  RCS file: /home/cvs/jakarta-struts/contrib/tiles/web/doc/doc/portal/revisions.jsp,v
  retrieving revision 1.7
  retrieving revision 1.8
  diff -u -r1.7 -r1.8
  --- revisions.jsp	27 Dec 2001 17:31:16 -0000	1.7
  +++ revisions.jsp	18 Feb 2002 14:48:39 -0000	1.8
  @@ -2,6 +2,28 @@
   <tr>
   <th bgcolor="aqua"><FONT size=4>History</FONT></th></tr>
     <TR>
  +    <TD><FONT size=2><STRONG> 18 Feb. 2002</STRONG> </FONT></TD></TR>
  +  <TR>
  +    <TD>
  +      <UL>
  +        <LI><FONT size=2>New tiles-blank application</FONT></LI>
  +        <LI><FONT size=2>Added a TilesController to run with latest Struts 1.1 dev</FONT></LI>
  +        <LI><FONT size=2>Change distribution : a stable release build shipped with Struts1.0.x 
  +		and a development release build with Struts1.1 dev</FONT></LI>
  +	  </UL>
  +	</TD>
  +  </TR> 
  +  <TR>
  +    <TD><FONT size=2><STRONG> 11 Jan. 2002</STRONG> </FONT></TD></TR>
  +  <TR>
  +    <TD>
  +      <UL>
  +        <LI><FONT size=2>Corrected bug preventing empty &lt;put&gt; body tags in Tomcat4</FONT></LI>
  +        <LI><FONT size=2>Corrected customized factory loading. It now works again</FONT></LI>
  +	  </UL>
  +	</TD>
  +  </TR> 
  +  <TR>
       <TD><FONT size=2><STRONG> 27 Dec. 2001</STRONG> </FONT></TD></TR>
     <TR>
       <TD>
  @@ -20,7 +42,7 @@
       <TD>
         <UL>
           <LI><FONT size=2>  Correct another bug with Orion : "importAttribute 
  -        not working whenreused"</FONT></LI></UL></TD></TR> 
  +        not working when reused"</FONT></LI></UL></TD></TR> 
     <TR>
       <TD><FONT size=2><STRONG> 29&nbsp;oct. 2001</STRONG> </FONT></TD></TR>
     <TR>
  
  
  
  1.3       +1 -0      jakarta-struts/contrib/tiles/web/doc/doc/portal/welcome.jsp
  
  Index: welcome.jsp
  ===================================================================
  RCS file: /home/cvs/jakarta-struts/contrib/tiles/web/doc/doc/portal/welcome.jsp,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- welcome.jsp	27 Dec 2001 17:31:16 -0000	1.2
  +++ welcome.jsp	18 Feb 2002 14:48:39 -0000	1.3
  @@ -17,6 +17,7 @@
       <li>Take a glance at some Tiles features and capabilities by browsing the commented live examples (avalaible if you install Tiles)</li>
       <li>Check the "Quick Overview" for code examples and results</li>
       <li>Start learning Tiles with the tutorial</li>
  +    <li>Read articles from <a href="http://www.javaworld.com/javaworld/jw-01-2002/jw-0104-tilestrut.html" >javaworld</a></li>
     </ul>
     </FONT> 
   </P>
  
  
  
  1.1                  jakarta-struts/contrib/tiles/web/doc/examples/skinSettings.jsp
  
  Index: skinSettings.jsp
  ===================================================================
  <%@ page language="java" %>
  <%@ taglib uri="/WEB-INF/tiles.tld" prefix="tiles" %>
  
  <tiles:insert definition="examples.skin.settings.page" flush="true" />
  
  
  
  1.1                  jakarta-struts/contrib/tiles/web/doc/examples/rssFeed/apacheweek-headlines.xml
  
  Index: apacheweek-headlines.xml
  ===================================================================
  <?xml version="1.0" encoding="UTF-8" ?>
  <!DOCTYPE rss PUBLIC "-//Netscape Communications//DTD RSS 0.91//EN" "http://my.netscape.com/publish/formats/rss-0.91.dtd">
  <rss version="0.91">
    <channel>
      <title>Apache Week 262</title>
      <description>The essential resource for anyone running an Apache server, or anyone responsible for running Apache-based services.</description>
      <language>en-gb</language>
      <link>http://www.apacheweek.com/</link>
      <copyright>Copyright 2001, Red Hat Europe</copyright>
      <managingEditor>editors@apacheweek.com (Mark Cox)</managingEditor>
      <webMaster>webadmin@apacheweek.com (Mark Cox)</webMaster>
      <lastBuildDate>20010907</lastBuildDate>
      <pubDate>20010907</pubDate>
      <image>
        <title>Apache Week</title>
        <url>http://www.apacheweek.com/img/apacheweek_channel.gif</url>
        <link>http://www.apacheweek.com/</link>
        <width>88</width>
        <height>31</height>
        <description>Apache Week</description>
      </image>
      <item>
        <title>Under development</title>
        <link>http://www.apacheweek.com/issues/01-09-07#dev</link>
        <description>
  Controversy over a gzip content compression module for 2.0
  </description>
      </item>
      <item>
        <title>In the news</title>
        <link>http://www.apacheweek.com/issues/01-09-07#news</link>
        <description>
  New web server surveys this month agree that Apache is still in 
  use on around 60% of all sites
  </description>
      </item>
      <item>
        <title>Featured articles</title>
        <link>http://www.apacheweek.com/issues/01-09-07#featured</link>
        <description>
  Analysing Apache logs with Webalizer; improving your Apache server performance
  </description>
      </item>
    </channel>
  </rss>
  
  
  
  1.1                  jakarta-struts/contrib/tiles/web/doc/examples/rssFeed/rss-example.xml
  
  Index: rss-example.xml
  ===================================================================
  <?xml version="1.0" encoding="UTF-8" ?>
  
  <!DOCTYPE rss PUBLIC
   "-//Netscape Communications//DTD RSS 0.91//EN"
   "http://my.netscape.com/publish/formats/rss-0.91.dtd">
  
  <rss version="0.91">
  
    <channel>
  
      <title>MozillaZine</title>
      <link>http://www.mozillazine.org</link>
      <description>Your source for Mozilla news, advocacy,
        interviews, builds, and more!</description>
      <language>en-US</language>
      <rating>(PICS-1.1 "http://www.rsac.org/ratingsv01.html"
        2 gen true comment "RSACi North America Server"
        for "http://www.rsac.org" on "1996.04.16T08:15-0500"
        r (n 0 s 0 v 0 l 0))</rating>
  
      <image>
        <title>MozillaZine</title>
        <url>http://www.mozillazine.org/image/mynetscape88.gif</url>
        <link>http://www.mozillazine.org</link>
        <width>88</width>
        <height>31</height>
        <description>Articles, discussions, builds, and more...</description>
      </image>
  
      <item>
        <title>Java2 in Navigator 5?</title>
        <link>http://www.mozillazine.org/talkback.html?article=607</link>
        <description>Will Java2 be an integrated part of Navigator 5?
        Read more about it in this discussion...</description>
      </item>
  
      <item>
        <title>Communicator 4.61 Out</title>
        <link>http://www.mozillazine.org/talkback.html?article=606</link>
        <description>The latest version of Communicator is now
        available.  It includes security enhancements
        and various bug fixes.</description>
      </item>
  
      <item>
        <title>Mozilla Dispenses with Old,
        Proprietary DOM</title>
        <link>http://www.mozillazine.org/talkback.html?article=604</link>
      </item>
  
      <item>
        <title>The Animation Contest is Now Closed</title>
        <link>http://www.mozillazine.org/talkback.html?article=603</link>
      </item>
  
      <textinput>
        <title>Send</title>
        <description>Comments about MozillaZine?</description>
        <name>responseText</name>
        <link>http://www.mozillazine.org/cgi-bin/sampleonly.cgi</link>
      </textinput>
  
    </channel>
  
  </rss>
  
  
  
  1.2       +2 -2      jakarta-struts/contrib/tiles/web/doc/examples/tiles/componentsSummary.jsp
  
  Index: componentsSummary.jsp
  ===================================================================
  RCS file: /home/cvs/jakarta-struts/contrib/tiles/web/doc/examples/tiles/componentsSummary.jsp,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- componentsSummary.jsp	27 Dec 2001 17:27:15 -0000	1.1
  +++ componentsSummary.jsp	18 Feb 2002 14:48:39 -0000	1.2
  @@ -9,7 +9,7 @@
       <TD class="datagrey">
   	<ul>
   	  <li>A tile can be used several time in a same page</li>
  -	  <li>For example, you can have a Tile rendering an adress, and use it to
  +	  <li>For example, you can have a Tile rendering an address, and use it to
   	  render as well shipping and billing addresses</li>
   	</ul>
   	</TD>
  @@ -17,7 +17,7 @@
     <TR>
       <td class="datalightblue">
   	<ul>
  -	  <li>not yet finished, see tutorial in meantime</li>
  +	  <li>new examples not yet available, see tutorial in meantime</li>
   	</ul>
       </TD>
     </TR>
  
  
  
  1.2       +1 -1      jakarta-struts/contrib/tiles/web/doc/examples/tiles/i18nSummary.jsp
  
  Index: i18nSummary.jsp
  ===================================================================
  RCS file: /home/cvs/jakarta-struts/contrib/tiles/web/doc/examples/tiles/i18nSummary.jsp,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- i18nSummary.jsp	27 Dec 2001 17:27:15 -0000	1.1
  +++ i18nSummary.jsp	18 Feb 2002 14:48:39 -0000	1.2
  @@ -19,7 +19,7 @@
     </TR>
       <td class="datalightblue">
   	<ul>
  -	  <li>not yet finished, see tutorial in meantime</li>
  +	  <li>new examples not yet available, see tutorial in meantime</li>
   	</ul>
       </TD>
   </TABLE>
  
  
  
  1.2       +1 -1      jakarta-struts/contrib/tiles/web/doc/examples/tiles/multiChannelsSummary.jsp
  
  Index: multiChannelsSummary.jsp
  ===================================================================
  RCS file: /home/cvs/jakarta-struts/contrib/tiles/web/doc/examples/tiles/multiChannelsSummary.jsp,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- multiChannelsSummary.jsp	27 Dec 2001 17:27:15 -0000	1.1
  +++ multiChannelsSummary.jsp	18 Feb 2002 14:48:39 -0000	1.2
  @@ -20,7 +20,7 @@
     </TR>
       <td class="datalightblue">
   	<ul>
  -	  <li>not yet finished, see tutorial in meantime</li>
  +	  <li>new examples not yet available, see tutorial in meantime</li>
   	</ul>
       </TD>
   </TABLE>
  
  
  
  1.2       +4 -12     jakarta-struts/contrib/tiles/web/doc/examples/tiles/myMenuSettings.jsp
  
  Index: myMenuSettings.jsp
  ===================================================================
  RCS file: /home/cvs/jakarta-struts/contrib/tiles/web/doc/examples/tiles/myMenuSettings.jsp,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- myMenuSettings.jsp	27 Dec 2001 17:27:15 -0000	1.1
  +++ myMenuSettings.jsp	18 Feb 2002 14:48:39 -0000	1.2
  @@ -64,15 +64,11 @@
   
   </script>
   
  -
  -<tiles:importAttribute name="choiceItems" />
  +<tiles:importAttribute name="catalog" />
   <tiles:importAttribute name="userItems" />
   
   <html:form action="/examples/myMenuSettings.do"  >
  -
  -
  -  
  -  
  + 
   	  <ul>
   	    <li>Choose an item from "Items Choice" colomn, and add it to "my Items" using the '>' button.</li>
   		<li>You can also rearange your Menu by using appropriate buttons : '^', 'V' and 'delete'</li>
  @@ -84,7 +80,7 @@
   	  Items Choice
   	  <br>
   	  <html:select property="selectedChoices" multiple="true" >
  -	    <html:options collection="choiceItems" property="link" labelProperty="value"/>
  +	    <html:options collection="catalog" property="link" labelProperty="value"/>
   	  </html:select>
   	</td>
   	<td>
  @@ -105,9 +101,5 @@
         <html:submit property="validate" value="validate" onclick="selectAll(selected);return true;"/></div>
   	</td>
     </tr>
  -  </table>
  -  
  -  
  -
  -  
  +  </table> 
   </html:form>
  
  
  
  1.2       +10 -4     jakarta-struts/contrib/tiles/web/doc/examples/tiles/rssChannels.jsp
  
  Index: rssChannels.jsp
  ===================================================================
  RCS file: /home/cvs/jakarta-struts/contrib/tiles/web/doc/examples/tiles/rssChannels.jsp,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- rssChannels.jsp	27 Dec 2001 17:27:15 -0000	1.1
  +++ rssChannels.jsp	18 Feb 2002 14:48:39 -0000	1.2
  @@ -5,7 +5,7 @@
    * @param CHANNELS List of channels
    * @author Ted Husted
    * @author Cedric Dumoulin
  - * @version $Revision: 1.1 $ $Date: 2001/12/27 17:27:15 $
  + * @version $Revision: 1.2 $ $Date: 2002/02/18 14:48:39 $
    */
   --%>
   
  @@ -14,14 +14,18 @@
   <%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>
   <%@ taglib uri="/WEB-INF/tiles.tld" prefix="tiles" %>
   
  +<div align="center"><font size="+1"><b>
  +
   <tiles:importAttribute name="CHANNELS" scope="page"/>
   
   <logic:iterate name="CHANNELS" id="CHANNEL" >
  -<TABLE border="0" cellspacing="2" cellpadding="4" width="300" align="center" >
  +<TABLE border="0" cellspacing="0" cellpadding="4" width="100%" align="center" >
   <TR>
  -<TD><logic:present name="CHANNEL" property="image"><img src="<bean:write name="CHANNEL" property="image.URL"/>"></logic:present></TD>
  -<TD class="spanhd" width="100%"><a href="<bean:write name="CHANNEL" property="link"/>">
  -<bean:write name="CHANNEL" property="title"/></a></TD>
  +<TD class="spanhd" ><logic:present name="CHANNEL" property="image">
  +  <a href="<bean:write name="CHANNEL" property="link"/>">
  +    <img src="<bean:write name="CHANNEL" property="image.URL"/>"></logic:present></a>
  +</TD>
  +<TD class="spanhd" width="100%"><bean:write name="CHANNEL" property="title"/> <a href="<bean:write name="CHANNEL" property="link"/>">[home]</a></TD>
   </TR>
   <TD class="yellow" colspan="2"><bean:write name="CHANNEL" property="description"/></TD>
   </TR>
  @@ -39,3 +43,5 @@
   </TABLE>
   <br>
   </logic:iterate>
  +
  +</b></font></div>
  \ No newline at end of file
  
  
  
  1.1                  jakarta-struts/contrib/tiles/web/doc/examples/tiles/myLayoutSummary.jsp
  
  Index: myLayoutSummary.jsp
  ===================================================================
  <div align="center"><font size="+1"><b>
  
  <TABLE border="0" cellPadding="2" cellSpacing=0 width="100%" >
    
    <TR>
      <TD class=spanhd>User Customized Layout (Skins)</TD>
    </TR>
    <TR>
      <TD class="datagrey">
  	<ul>
  	  <li>It is possible to change the main layout used by one site</li>
  	  <li>Each layout shows the site in a differnent L&F</li>
  	</ul>
  	</TD>
    </TR>
    <TR>
      <td class="datalightblue">
  	<ul>
  	  <li>Change Layout
        <BR><a href="<%=request.getContextPath()%>/examples/skinSettings.jsp">my Layout</a></li>
  	</ul>
      </TD>
    </TR>
  </TABLE>
  
  </b></font></div>
  
  
  1.1                  jakarta-struts/contrib/tiles/web/doc/examples/tiles/mySkinSettings.jsp
  
  Index: mySkinSettings.jsp
  ===================================================================
  <%@ taglib uri="/WEB-INF/tiles.tld" prefix="tiles" %>
  <%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
  
  
  <tiles:importAttribute name="catalog" />
  <tiles:useAttribute name="selected" />
  
  <html:form action="/examples/mySkinSettings.do"  >
  
  
    
    
  	  <ul>
  	    <li>Current skin is highlighted.</li>
  		<li>Select and validate to change skin</li>
  		<li>Reload page to see result</li>
  	  </ul>
    <table align="center">
    <tr>
      <td align="right">
  	  Available Skins
  	  <br>
  	  <html:select property="selected" multiple="false" value="<%=(String)selected%>" >
  	    <html:options name="catalog" property="keys" labelName="catalog" labelProperty="names" />
  	  </html:select>
  
  	</td>
      <td align="left">
        <html:submit property="validate" value="validate" /></div>
  	</td>
    </tr>
    </table>
  	  <ul>
  	    <li>In the examples, only this page is affected by skin change. 
  		</li>
  		<li>It is possible to affect all pages by changing
  		  root layout definition in configuration file.
  		</li>
  	  </ul>
    
    
  
    
  </html:form>
  
  
  
  1.2       +0 -6      jakarta-struts/contrib/tiles/web/doc/layouts/menu.jsp
  
  Index: menu.jsp
  ===================================================================
  RCS file: /home/cvs/jakarta-struts/contrib/tiles/web/doc/layouts/menu.jsp,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- menu.jsp	27 Dec 2001 17:27:56 -0000	1.1
  +++ menu.jsp	18 Feb 2002 14:48:39 -0000	1.2
  @@ -27,12 +27,6 @@
   </logic:present>
   
   <%-- iterate on items list --%>
  -<%-- Normally, we should write something like this :
  -   <logic:iterate id="item" name="items" type="java.lang.String" >
  -   But, Struts doesn't declare the TEI class for iterate, and 
  -   some web container deal badly with the declared variable. 
  -   So, we use what follow instead.
  -    --%>
   <logic:iterate id="item" name="items" type="org.apache.struts.tiles.beans.MenuItem" >
   
   <%  // Add site url if link start with "/"
  
  
  
  1.1                  jakarta-struts/contrib/tiles/web/doc/layouts/skin1/menuLeftLayout.jsp
  
  Index: menuLeftLayout.jsp
  ===================================================================
  <%@ taglib uri="/WEB-INF/tiles.tld" prefix="tiles" %>
  
  <%-- Layout Tiles 
    This layout create a html page with <header> and <body> tags. It render
     a header, left menu, body and footer tile.
    @param title String use in page title
    @param header Header tile (jsp url or definition name)
    @param menu Menu 
    @param body Body
    @param footer Footer
  --%>
  <HTML>
    <HEAD>
  	<link rel=stylesheet href="<%=request.getContextPath()%>/layouts/stylesheet.css" type="text/css">
      <title><tiles:getAsString name="title"/></title>
  	
    </HEAD>
  
  <body bgcolor="#C0C0C0" text="#000000" link="#023264" alink="#023264" vlink="#023264">
  <table border="0" width="100%" cellspacing="5">
  <tr>
    <td colspan="2"><tiles:insert attribute="header" /></td>
  </tr>
  <tr>
    <td valign="top"  align="left">
      <tiles:insert attribute='body' />
    </td>
    <td width="140" valign="top">
      <tiles:insert attribute='menu'/>
    </td>
  </tr>
  <tr>
    <td colspan="2">
      <tiles:insert attribute="footer" />
    </td>
  </tr>
  </table>
  </body>
  </html>
  
  
  
  
  1.2       +2 -2      jakarta-struts/contrib/tiles/web/doc/test/testController.jsp
  
  Index: testController.jsp
  ===================================================================
  RCS file: /home/cvs/jakarta-struts/contrib/tiles/web/doc/test/testController.jsp,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- testController.jsp	27 Dec 2001 17:33:01 -0000	1.1
  +++ testController.jsp	18 Feb 2002 14:48:40 -0000	1.2
  @@ -12,7 +12,7 @@
   <strong>Test controller set in insert</strong>
   <br>
   <tiles:insert template="layout.jsp" 
  -           controllerType="org.apache.struts.example.tiles.test.TestTileController" >
  +           controllerClass="org.apache.struts.example.tiles.test.TestTileController" >
     <tiles:put name="title"  value="Test controller set in insert" />
     <tiles:put name="header" value="header.jsp" />
     <tiles:put name="body"   value="body.jsp" />
  @@ -22,7 +22,7 @@
   <strong>Test controller set in insert, and attribute from definition</strong>
   <br>
   <tiles:insert definition="test.layout.test1" 
  -           controllerType="org.apache.struts.example.tiles.test.TestTileController" >
  +           controllerClass="org.apache.struts.example.tiles.test.TestTileController" >
     <tiles:put name="title"  value="Test controller set in insert, and attribute from definition" />
   </tiles:insert>
   
  
  
  
  1.2       +15 -15    jakarta-struts/contrib/tiles/web/doc/test/testList.jsp
  
  Index: testList.jsp
  ===================================================================
  RCS file: /home/cvs/jakarta-struts/contrib/tiles/web/doc/test/testList.jsp,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- testList.jsp	1 Aug 2001 14:36:46 -0000	1.1
  +++ testList.jsp	18 Feb 2002 14:48:40 -0000	1.2
  @@ -1,21 +1,21 @@
  -<%@ taglib uri="/WEB-INF/tiles.tld" prefix="comp" %>
  +<%@ taglib uri="/WEB-INF/tiles.tld" prefix="tiles" %>
   
   <strong>Example of list usage</strong>
   <%-- Insert a menu component.
     Menu component require two lists : one of items, and one of links.
   --%>
  -<comp:insert component="menu.jsp" >
  -  <comp:put name="title" value="Test menu" />
  -  <comp:putList name="items">
  -    <comp:add value="home" />
  -    <comp:add>
  +<tiles:insert component="menu.jsp" >
  +  <tiles:put name="title" value="Test menu" />
  +  <tiles:putList name="items">
  +    <tiles:add value="home" />
  +    <tiles:add>
   	  <img src="<%=request.getContextPath()%>/images/struts-power.gif"
  -	       align="right" border="0"></comp:add>
  -    <comp:add value="documentation"/>
  -  </comp:putList>
  -  <comp:putList name="links">
  -    <comp:add value="/index.jsp"/>
  -    <comp:add value="/../struts-documentation"/>
  -    <comp:add value="/../comps-doc" type="string" />
  -  </comp:putList>
  -</comp:insert>
  \ No newline at end of file
  +	       align="right" border="0"></tiles:add>
  +    <tiles:add value="documentation"/>
  +  </tiles:putList>
  +  <tiles:putList name="links">
  +    <tiles:add value="/index.jsp"/>
  +    <tiles:add value="/../struts-documentation"/>
  +    <tiles:add value="/../comps-doc" type="string" />
  +  </tiles:putList>
  +</tiles:insert>
  \ No newline at end of file
  
  
  
  1.2       +8 -8      jakarta-struts/contrib/tiles/web/doc/tutorial/basicPage.jsp
  
  Index: basicPage.jsp
  ===================================================================
  RCS file: /home/cvs/jakarta-struts/contrib/tiles/web/doc/tutorial/basicPage.jsp,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- basicPage.jsp	1 Aug 2001 14:36:46 -0000	1.1
  +++ basicPage.jsp	18 Feb 2002 14:48:40 -0000	1.2
  @@ -1,9 +1,9 @@
  -<%@ taglib uri="/WEB-INF/tiles.tld" prefix="comp" %>
  +<%@ taglib uri="/WEB-INF/tiles.tld" prefix="tiles" %>
   
  -<comp:insert page="/tutorial/basic/myLayout.jsp" flush="true">
  -  <comp:put name="title"  value="My first page" />
  -  <comp:put name="header" value="/tutorial/common/header.jsp" />
  -  <comp:put name="footer" value="/common/footer.jsp" />
  -  <comp:put name="menu"   value="/tutorial/basic/menu.jsp" />
  -  <comp:put name="body"   value="/tutorial/basic/helloBody.jsp" />
  -</comp:insert>
  +<tiles:insert page="/tutorial/basic/myLayout.jsp" flush="true">
  +  <tiles:put name="title"  value="My first page" />
  +  <tiles:put name="header" value="/tutorial/common/header.jsp" />
  +  <tiles:put name="footer" value="/common/footer.jsp" />
  +  <tiles:put name="menu"   value="/tutorial/basic/menu.jsp" />
  +  <tiles:put name="body"   value="/tutorial/basic/helloBody.jsp" />
  +</tiles:insert>
  
  
  
  1.2       +5 -5      jakarta-struts/contrib/tiles/web/doc/tutorial/frameset.jsp
  
  Index: frameset.jsp
  ===================================================================
  RCS file: /home/cvs/jakarta-struts/contrib/tiles/web/doc/tutorial/frameset.jsp,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- frameset.jsp	1 Aug 2001 14:36:46 -0000	1.1
  +++ frameset.jsp	18 Feb 2002 14:48:40 -0000	1.2
  @@ -1,4 +1,4 @@
  -<%@ taglib uri="/WEB-INF/tiles.tld" prefix="comp" %>
  +<%@ taglib uri="/WEB-INF/tiles.tld" prefix="tiles" %>
   
   <%-- Layout component 
     parameters : title, header, menu, body, footer 
  @@ -6,14 +6,14 @@
   
   <html>
   <head>
  -    <title><comp:getAsString name="title"/></title>
  +    <title><tiles:getAsString name="title"/></title>
   </head>
   
   <body>
   <frameset rows="3">
  -  <frame src="<comp:get name="header" />" name="header" id="header" scrolling="Auto">
  -  <frame src="<comp:get name="body" />" name="body" id="header" scrolling="Auto">
  -  <frame src="<comp:get name="footer" />" name="footer" id="header" scrolling="Auto">
  +  <frame src="<tiles:get name="header" />" name="header" id="header" scrolling="Auto">
  +  <frame src="<tiles:get name="body" />" name="body" id="header" scrolling="Auto">
  +  <frame src="<tiles:get name="footer" />" name="footer" id="header" scrolling="Auto">
   </frameset>
   </body>
   
  
  
  
  1.2       +2 -0      jakarta-struts/contrib/tiles/web/doc/tutorial/common/header.jsp
  
  Index: header.jsp
  ===================================================================
  RCS file: /home/cvs/jakarta-struts/contrib/tiles/web/doc/tutorial/common/header.jsp,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- header.jsp	1 Aug 2001 14:36:46 -0000	1.1
  +++ header.jsp	18 Feb 2002 14:48:40 -0000	1.2
  @@ -4,5 +4,7 @@
   <html:img page="/tutorial/images/id_nav_outside.gif" align="left" border="0"/>
   <html:img page="/tutorial/images/id_nav_bkgnd.gif" align="right" border="0"/> </P>
   
  +<%--
   <P><img src="<%=request.getContextPath()%>/tutorial/images/id_nav_outside.gif" align="left" border="0">
   <img src="<%=request.getContextPath()%>/tutorial/images/id_nav_bkgnd.gif" align="right" border="0"> </P>
  +--%>
  
  
  
  1.3       +1 -1      jakarta-struts/contrib/tiles/web/doc/tutorial/invoice/editAddress2.jsp
  
  Index: editAddress2.jsp
  ===================================================================
  RCS file: /home/cvs/jakarta-struts/contrib/tiles/web/doc/tutorial/invoice/editAddress2.jsp,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- editAddress2.jsp	10 Sep 2001 13:13:05 -0000	1.2
  +++ editAddress2.jsp	18 Feb 2002 14:48:40 -0000	1.3
  @@ -16,7 +16,7 @@
   
     <tr>
       <th align="right" width="30%">
  -      Street
  +      Street helo
       </th>
       <td align="left">
   	  <%-- Declare an html input field. 										--%>
  
  
  
  1.3       +2 -2      jakarta-struts/contrib/tiles/web/doc/tutorial/invoice/editInvoice.jsp
  
  Index: editInvoice.jsp
  ===================================================================
  RCS file: /home/cvs/jakarta-struts/contrib/tiles/web/doc/tutorial/invoice/editInvoice.jsp,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- editInvoice.jsp	10 Sep 2001 13:13:05 -0000	1.2
  +++ editInvoice.jsp	18 Feb 2002 14:48:40 -0000	1.3
  @@ -43,7 +43,7 @@
   	  <%-- Include an "address editor" component.					--%>
   	  <%-- Pass the component name and component value as parameter	--%>
   	  <%-- Value comes from the form bean --%>
  -	  <tiles:insert page="/tutorial/invoice/editAddress2.jsp" >
  +	  <tiles:insert page="/tutorial/invoice/editAddress.jsp" >
   	    <tiles:put name="property" value="shippingAddress" />
   	    <tiles:put name="bean" beanName="invoiceForm"  />
   	  </tiles:insert>
  @@ -60,7 +60,7 @@
     </tr>
     <tr>
       <td align="center" colspan="2">
  -  <tiles:insert page="/tutorial/invoice/editAddress2.jsp" >
  +  <tiles:insert page="/tutorial/invoice/editAddress.jsp" >
       <tiles:put name="property" value="billAddress" />
   	<tiles:put name="bean" beanName="invoiceForm" />
     </tiles:insert>
  
  
  
  1.3       +9 -9      jakarta-struts/contrib/tiles/web/doc/tutorial/invoice/editInvoice2.jsp
  
  Index: editInvoice2.jsp
  ===================================================================
  RCS file: /home/cvs/jakarta-struts/contrib/tiles/web/doc/tutorial/invoice/editInvoice2.jsp,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- editInvoice2.jsp	10 Sep 2001 13:13:05 -0000	1.2
  +++ editInvoice2.jsp	18 Feb 2002 14:48:40 -0000	1.3
  @@ -1,5 +1,5 @@
   <%@ page language="java" %>
  -<%@ taglib uri="/WEB-INF/tiles.tld"  prefix="comp" %>
  +<%@ taglib uri="/WEB-INF/tiles.tld"  prefix="tiles" %>
   <%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
   <%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
   
  @@ -43,10 +43,10 @@
   	  <%-- Include an "address editor" component.					--%>
   	  <%-- Pass the component name and component value as parameter	--%>
   	  <%-- Value comes from the form bean --%>
  -	  <comp:insert page="/tutorial/invoice/editAddress.jsp" >
  -	    <comp:put name="compName" value="shippingAddress" />
  -	    <comp:put name="address" beanName="invoiceForm" beanProperty="shippingAddress" />
  -	  </comp:insert>
  +	  <tiles:insert page="/tutorial/invoice/editAddress.jsp" >
  +	    <tiles:put name="compName" value="shippingAddress" />
  +	    <tiles:put name="address" beanName="invoiceForm" beanProperty="shippingAddress" />
  +	  </tiles:insert>
       </td>
     </tr>
   
  @@ -60,10 +60,10 @@
     </tr>
     <tr>
       <td align="center" colspan="2">
  -  <comp:insert page="/tutorial/invoice/editAddress.jsp" >
  -    <comp:put name="compName" value="billAddress" />
  -	<comp:put name="address" beanName="invoiceForm" beanProperty="billAddress" />
  -  </comp:insert>
  +  <tiles:insert page="/tutorial/invoice/editAddress.jsp" >
  +    <tiles:put name="compName" value="billAddress" />
  +	<tiles:put name="address" beanName="invoiceForm" beanProperty="billAddress" />
  +  </tiles:insert>
       </td>
     </tr>
   
  
  
  
  1.3       +5 -5      jakarta-struts/contrib/tiles/web/doc/tutorial/invoice/index.jsp
  
  Index: index.jsp
  ===================================================================
  RCS file: /home/cvs/jakarta-struts/contrib/tiles/web/doc/tutorial/invoice/index.jsp,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- index.jsp	10 Sep 2001 13:13:05 -0000	1.2
  +++ index.jsp	18 Feb 2002 14:48:40 -0000	1.3
  @@ -1,8 +1,8 @@
   <%@ page language="java" %>
  -<%@ taglib uri="/WEB-INF/tiles.tld" prefix="comp" %>
  +<%@ taglib uri="/WEB-INF/tiles.tld" prefix="tiles" %>
   
  -<comp:insert definition="mainLayout" flush="true">
  -  <%--  <comp:put name="body" value="/tutorial/invoice/editInvoice.jsp" /> --%>
  -  <comp:put name="body" value="/tutorial/invoice/editInvoice2.jsp" />
  -</comp:insert>
  +<tiles:insert definition="mainLayout" flush="true">
  +  <tiles:put name="body" value="/tutorial/invoice/editInvoice.jsp" />
  +  <%--  <tiles:put name="body" value="/tutorial/invoice/editInvoice2.jsp" /> --%>
  +</tiles:insert>
   
  
  
  
  1.2       +17 -17    jakarta-struts/contrib/tiles/web/doc/tutorial/portal/portalBody.jsp
  
  Index: portalBody.jsp
  ===================================================================
  RCS file: /home/cvs/jakarta-struts/contrib/tiles/web/doc/tutorial/portal/portalBody.jsp,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- portalBody.jsp	1 Aug 2001 14:36:47 -0000	1.1
  +++ portalBody.jsp	18 Feb 2002 14:48:40 -0000	1.2
  @@ -1,18 +1,18 @@
  -<%@ taglib uri="/WEB-INF/tiles.tld" prefix="comp" %>
  +<%@ taglib uri="/WEB-INF/tiles.tld" prefix="tiles" %>
   
  -<comp:insert page="/layout/columnsLayout.jsp" flush="true">
  -  <comp:put name="numCols" value="2" />
  -  <comp:putList name="list0" >
  -    <comp:add value="/tutorial/portal/login.jsp" />
  -    <comp:add value="/tutorial/portal/messages.jsp" />
  -    <comp:add value="/tutorial/portal/newsFeed.jsp" />
  -    <comp:add value="/tutorial/portal/advert2.jsp" />
  -  </comp:putList>
  -  <comp:putList name="list1" >
  -    <comp:add value="/tutorial/portal/advert3.jsp" />
  -    <comp:add value="/tutorial/portal/stocks.jsp" />
  -    <comp:add value="/tutorial/portal/whatsNew.jsp" />
  -    <comp:add value="/tutorial/portal/personalLinks.jsp" />
  -    <comp:add value="/tutorial/portal/search.jsp" />
  -  </comp:putList>
  -</comp:insert>
  \ No newline at end of file
  +<tiles:insert page="/layout/columnsLayout.jsp" flush="true">
  +  <tiles:put name="numCols" value="2" />
  +  <tiles:putList name="list0" >
  +    <tiles:add value="/tutorial/portal/login.jsp" />
  +    <tiles:add value="/tutorial/portal/messages.jsp" />
  +    <tiles:add value="/tutorial/portal/newsFeed.jsp" />
  +    <tiles:add value="/tutorial/portal/advert2.jsp" />
  +  </tiles:putList>
  +  <tiles:putList name="list1" >
  +    <tiles:add value="/tutorial/portal/advert3.jsp" />
  +    <tiles:add value="/tutorial/portal/stocks.jsp" />
  +    <tiles:add value="/tutorial/portal/whatsNew.jsp" />
  +    <tiles:add value="/tutorial/portal/personalLinks.jsp" />
  +    <tiles:add value="/tutorial/portal/search.jsp" />
  +  </tiles:putList>
  +</tiles:insert>
  \ No newline at end of file
  
  
  
  1.6       +39 -0     jakarta-struts/contrib/tiles/web/doc/WEB-INF/struts-config.xml
  
  Index: struts-config.xml
  ===================================================================
  RCS file: /home/cvs/jakarta-struts/contrib/tiles/web/doc/WEB-INF/struts-config.xml,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -r1.5 -r1.6
  --- struts-config.xml	27 Dec 2001 17:31:16 -0000	1.5
  +++ struts-config.xml	18 Feb 2002 14:48:40 -0000	1.6
  @@ -18,6 +18,7 @@
   <struts-config>
   
   
  +  
     <!-- ========== Form Bean Definitions =================================== -->
     <form-beans>
   
  @@ -28,6 +29,8 @@
                       type="org.apache.struts.example.tiles.portal.PortalSettingsForm"/>
       <form-bean      name="myMenuSettingsForm"
                       type="org.apache.struts.example.tiles.portal.MenuSettingsForm"/>
  +    <form-bean      name="mySkinSettingsForm"
  +                    type="org.apache.struts.example.tiles.skin.LayoutSettingsForm"/>
   
     </form-beans>
   
  @@ -141,6 +144,33 @@
         <forward  name="success"    	       path="examples.userMenu.settings.page"/>
     </action>
   
  +  <!-- =======================================================  -->
  +  <!-- Tiles 1.1 Skin Settings -->
  +  <!-- =======================================================  -->
  +    <!-- Skin Settings page entrance : forward to appropriate page definition -->
  +  <action     path="/examples/mySkinSettings"
  +       		  type="org.apache.struts.tiles.actions.NoOpAction"
  +			  name="mySkinSettingsForm" >
  +      <forward  name="success"    	       path="examples.skin.settings.page"/>
  +  </action>
  +
  +    <action     path="/examples/controller/mySkinSettings"
  +                type="org.apache.struts.example.tiles.skin.LayoutSettingsAction"
  +				name="mySkinSettingsForm" >
  +   </action>
  +
  +    <action     path="/examples/controller/layoutSwitch"
  +                type="org.apache.struts.example.tiles.skin.LayoutSwitchAction"  >
  +   </action>
  +
  +
  +  <!-- =======================================================  -->
  +  <!-- Tiles 1.1 Rss Channel -->
  +  <!-- =======================================================  -->
  +    <action     path="/examples/controller/rssChannel"
  +                type="org.apache.struts.example.tiles.rssChannel.RssChannelsAction">
  +   </action>
  +
   
     <!-- =======================================================  -->
     <!-- Rss Channel -->
  @@ -179,5 +209,14 @@
   
   
     </action-mappings>
  +  <!-- ========== Associated Request Processor settings =================== -->
  +  <!-- Here we specified the tiles processor -->
  +  <controller processorClass="org.apache.struts.tiles.TilesRequestProcessor">
  +  </controller>
  +  
  +  <!-- ========== Associated Messages Ressource settings =================== -->
  +  <!-- Not used by tiles or this website, but needed due to a bug in actual Struts version -->
  +  <message-resource parameter="org.apache.struts.example.tiles.dev1-1.ApplicationResources" null="false">
  +  </message-resource>
   
   </struts-config>
  
  
  
  1.2       +135 -7    jakarta-struts/contrib/tiles/web/doc/WEB-INF/tiles-examples-defs.xml
  
  Index: tiles-examples-defs.xml
  ===================================================================
  RCS file: /home/cvs/jakarta-struts/contrib/tiles/web/doc/WEB-INF/tiles-examples-defs.xml,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- tiles-examples-defs.xml	27 Dec 2001 17:33:01 -0000	1.1
  +++ tiles-examples-defs.xml	18 Feb 2002 14:48:40 -0000	1.2
  @@ -35,22 +35,41 @@
       <add value="doc.menu.printer.friendly" />
       <add value="examples.menu.admin" />
     </putList>
  +</definition>
   
  +  <!--  menus common ancestor definition -->
  +  <!-- This definition is used as common ancestor for menu definitions.
  +       It allows to define common attribute in one place.
  +	   Actually, it defines the layout used to render menus.
  +   -->
  +<definition name="examples.menu.root" path="/layouts/menu.jsp"  >
   </definition>
   
     <!-- User menu definition -->
     <!-- This menu is customizable by user. Definition only contains default items -->
  -<definition name="examples.userMenu" path="/layouts/menu.jsp" 
  +<definition name="examples.userMenu" extends="examples.menu.root"
               controllerClass="org.apache.struts.example.tiles.portal.UserMenuAction"  >
  -  <put name="storeUnderName" value="examples.user.myMenu"/>
  +  <put name="catalogSettings" value="examples.myMenu.catalog.settings"/>
  +  <put name="catalogName" value="examples.portal.menuCatalog"/>
     <put name="title" value="My Menu" />
       <putList name="items" >
         <item value="customize"    link="/examples/myMenuSettings.jsp"  classtype="org.apache.struts.tiles.beans.SimpleMenuItem" />
       </putList>
   </definition>
   
  +  <!-- Menu bar definition used by customizable menu catalog -->
  +  <!-- This definition declare available items in user menu catalog  -->
  +<definition name="examples.myMenu.catalog.settings" >
  +  <putList name="list" >
  +    <add value="examples.userMenu" />
  +    <add value="examples.menu.links" />
  +    <add value="examples.menu.settings" />
  +    <add value="examples.menu.admin" />
  +  </putList>
  +</definition>
  +
     <!-- Examples main menu definition -->
  -<definition name="examples.menu.links" path="/layouts/menu.jsp" >
  +<definition name="examples.menu.links" extends="examples.menu.root" >
     <put name="title" value="Examples" />
     <putList name="items" >
       <item value="Examples Home"    
  @@ -81,7 +100,7 @@
   </definition>
   
     <!-- Preferences menu definition -->
  -<definition name="examples.menu.settings" path="/layouts/menu.jsp" >
  +<definition name="examples.menu.settings" extends="examples.menu.root" >
     <put name="title" value="Preferences" />
       <putList name="items" >
       <item value="my Portal Settings"           
  @@ -90,11 +109,14 @@
       <item value="my Menu Settings"    
   			link="/examples/myMenuSettings.jsp"       
          		classtype="org.apache.struts.tiles.beans.SimpleMenuItem" />
  +    <item value="my Layout Settings"    
  +			link="/examples/skinSettings.jsp"       
  +       		classtype="org.apache.struts.tiles.beans.SimpleMenuItem" />
       </putList>
   </definition>
   
     <!-- admin menu definition -->
  -<definition name="examples.menu.admin" path="/layouts/menu.jsp" >
  +<definition name="examples.menu.admin" extends="examples.menu.root" >
     <put name="title" value="Admin" />
     <putList name="items" >
       <item value="Reload"     link="/admin/tiles/reload.do"      classtype="org.apache.struts.tiles.beans.SimpleMenuItem" />
  @@ -118,6 +140,7 @@
   	    <add value="/examples/tiles/portalSummary.jsp" />
   	    <add value="/examples/tiles/myPortalSummary.jsp" />
   	    <add value="/examples/tiles/rssChannelsSummary.jsp" />
  +	    <add value="/examples/tiles/myLayoutSummary.jsp" />
   	    <add value="/examples/tiles/adminSummary.jsp" />
   	    <add value="/examples/tiles/componentsSummary.jsp" />
   	  </putList>
  @@ -148,6 +171,8 @@
   	    <add value="/examples/tiles/portal/login.jsp" />
   	    <add value="/examples/tiles/portal/messages.jsp" />
   	    <add value="/examples/tiles/portal/newsFeed.jsp" />
  +	    <!--<add value="examples.menu.bar" />-->
  +		
   	  </putList>
   	  <putList name="list1" >
   	    <add value="/examples/tiles/portal/advert3.jsp" />
  @@ -155,6 +180,19 @@
   	    <add value="/examples/tiles/portal/whatsNew.jsp" />
   	    <add value="/examples/tiles/portal/advert2.jsp" />
   	  </putList>
  +	    <!-- labels used by catalog [optional]-->
  +	  <putList name="labels0" >
  +	    <add value="Login" />
  +	    <add value="Your Messages" />
  +	    <add value="News Feed" />
  +	    <!--<add value="Menu Bar" />-->
  +	  </putList>
  +	  <putList name="labels1" >
  +	    <add value="Advert 3" />
  +	    <add value="Stock" />
  +	    <add value="What's new" />
  +	    <add value="Advert 2" />
  +	  </putList>
     </definition>
   
     <!-- =======================================================  -->
  @@ -196,8 +234,7 @@
   	    <add value="doc.menu.taglib.references" />
   	    <add value="doc.menu.printer.friendly" />
   	    <add value="doc.menu.old.documents" />
  -	  </putList>
  -		
  +	  </putList>	
     </definition>
   
     <!-- =======================================================  -->
  @@ -294,6 +331,97 @@
   			link="/examples/tiles/componentsSummary.jsp" 
   	        classtype="org.apache.struts.tiles.beans.SimpleMenuItem" />
       </putList>
  +  </definition>
  +  
  +  <!-- =======================================================  -->
  +  <!-- Rss Channel  definitions  									-->
  +  <!-- =======================================================  -->
  +
  +    <!-- Rss main page -->
  +  <definition name="examples.rssChannels.page" extends="examples.masterPage">
  +	  <put name="title"  value="Tiles 1.1 Rss Channels" />
  +	  <put name="body"   value="examples.rssChannel.offline.body" />
  +  </definition>
  +
  +    <!-- Rss channel body declaration-->
  +	<!-- Example to use when connected (online)-->
  +  <definition name="examples.rssChannel.body" path="/examples/tiles/rssChannels.jsp" 
  +			  controllerUrl="/examples/controller/rssChannel.do" >
  +      <putList name="urls" >
  +	    <add value="http://www.newsforge.com/newsforge.rss" />
  +	    <add value="http://xmlhack.com/rss.php" />
  +	    <add value="http://lwn.net/headlines/rss" />
  +	  </putList>
  +  </definition>
  +
  +    <!-- Rss channel body declaration-->
  +	<!-- Example whith local feeds (offline)-->
  +  <definition name="examples.rssChannel.offline.body"  path="/examples/tiles/rssChannels.jsp"
  +			  controllerUrl="/examples/controller/rssChannel.do" >
  +      <putList name="urls" >
  +	    <add value="/examples/rssFeed/rss-example.xml" />
  +	    <add value="/examples/rssFeed/apacheweek-headlines.xml" />
  +	  </putList>
  +  </definition>
  +
  +  <!-- =======================================================  -->
  +  <!-- Skin Settings definitions  									-->
  +  <!-- =======================================================  -->
  +
  +    <!-- Rss main page -->
  +  <definition name="examples.skin.settings.page" extends="examples.customizable.layouts.root">
  +	  <put name="title"  value="Tiles 1.1 Skin Setting" />
  +	  <put name="body"   value="examples.skin.settings.body" />
  +  </definition>
  +
  +    <!-- Rss channel body declaration-->
  +	<!-- Example to use when connected (online)-->
  +  <definition name="examples.skin.settings.body" path="/examples/tiles/mySkinSettings.jsp" 
  +			  controllerUrl="/examples/controller/mySkinSettings.do" >
  +	  <put name="userSettingsName"   value="tiles.examples.skin.user.settings" />
  +	  <!--<put name="catalogName"   value="tiles.examples.skin.catalog" />-->
  +	  <put name="catalogSettings"   value="examples.available.skins" />
  +  </definition>
  +
  +  <!-- =======================================================  -->
  +  <!-- Skins Definitions  									-->
  +  <!-- =======================================================  -->
  +
  +
  +	  <!-- This definition is used as common ancestor for customible layouts definitions.
  +	       It allows to define common attribute in one place.
  +		   Actually, it defines names used by layout controller.
  +	   -->
  +	<definition name="examples.customizable.layouts.root"  		
  +	            extends="examples.masterPage"	
  +				path="/examples/controller/layoutSwitch.do"   >
  +	  <put name="userSettingsName"   value="tiles.examples.skin.user.settings" />
  +	  <!--<put name="catalogName"   value="tiles.examples.skin.catalog" />-->
  +	  <put name="catalogSettings"   value="examples.available.skins" />
  +	  <put name="layout.attribute"   		value="page.layout" />
  +	</definition>
  +
  +    <!-- Available skins -->
  +  <definition name="examples.available.skins" >
  +      <putList name="skin.list" >
  +	    <add value="examples.default.skin" />
  +	    <add value="examples.menuleft.skin" />
  +	  </putList>
  +  </definition>
  +
  +    <!-- Default skin values -->
  +  <definition name="examples.default.skin" >
  +    <put name="skin.label" value="Default" />
  +    <put name="page.layout" value="/layouts/classicLayout.jsp" />
  +    <put name="menu.layout" value="/layouts/menu.jsp" />
  +    <put name="menuBar.layout" value="/layouts/vboxLayout.jsp" />
  +  </definition>
  +
  +    <!-- Default skin values -->
  +  <definition name="examples.menuleft.skin" extends="examples.default.skin" >
  +    <put name="skin.label" value="Left Menu" />
  +    <put name="page.layout" value="/layouts/skin1/menuLeftLayout.jsp" />
  +    <put name="menu.layout" value="/layouts/menu.jsp" />
     </definition>
   
   
  
  
  
  1.4       +9 -1      jakarta-struts/contrib/tiles/web/doc/WEB-INF/web.xml
  
  Index: web.xml
  ===================================================================
  RCS file: /home/cvs/jakarta-struts/contrib/tiles/web/doc/WEB-INF/web.xml,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- web.xml	27 Dec 2001 17:31:16 -0000	1.3
  +++ web.xml	18 Feb 2002 14:48:40 -0000	1.4
  @@ -9,10 +9,12 @@
     <!-- Action Servlet Configuration -->
     <servlet>
       <servlet-name>action</servlet-name>
  +    <!-- <servlet-class>org.apache.struts.action.ActionServlet</servlet-class> --> 
       <servlet-class>org.apache.struts.tiles.ActionComponentServlet</servlet-class> 
   	<init-param>
         <param-name>definitions-config</param-name>
  -      <param-value>/WEB-INF/tiles-defs.xml,/WEB-INF/tiles-tests-defs.xml,/WEB-INF/tiles-tutorial-defs.xml,/WEB-INF/tiles-examples-defs.xml</param-value>
  +      <param-value>/WEB-INF/tiles-defs.xml,/WEB-INF/tiles-tests-defs.xml,/WEB-INF/tiles-tutorial-defs.xml,
  +                 /WEB-INF/tiles-examples-defs.xml</param-value>
       </init-param>
       <init-param>
         <param-name>definitions-debug</param-name>
  @@ -43,6 +45,12 @@
         <param-name>detail</param-name>
         <param-value>2</param-value>
       </init-param>
  +      <!-- Added as a trick for a bug in Struts -->
  +    <init-param>
  +      <param-name>application</param-name>
  +      <param-value>org.apache.struts.example.tiles.dev1-1.ApplicationResources</param-value>
  +    </init-param>
  +    
       <load-on-startup>2</load-on-startup>
     </servlet>
   
  
  
  

--
To unsubscribe, e-mail:   <mailto:struts-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:struts-dev-help@jakarta.apache.org>


Mime
View raw message