My goal was to form a complete example of a
working Tiles/JSP example  independently of Struts. However
the links
are dead in the current version. Also, I believe some of
the
documentation is dated, and some of what comes back from a
GIS are
leftover descriptions from an older version of Tiles. I
have created a fixed example that fits with some of the
previous
documentation, but actually will work in the case of using
Tiles
definitions.

Tiles Background
1. The <a
href="http://struts.apache.org/1.x/struts-tiles/installation.html";>Tiles
installation document</a> states that in order
to use Tiles independently, you would use the TilesServlet,
located in the struts-tiles-VERSION.jar. There is not a
TilesServlet, nor a struts-tiles-VERSION.jar, in the
struts-1.2.9-src, -lib, or -bin deliveries. The <a
href="http://struts.apache.org/1.x/struts-tiles/installation.html";>Tiles
installation document</a> has a dead link to
http://struts.apache.org/1.x/struts-tiles/cvs-usage.html.
2.  The <a
href="http://struts.apache.org/1.x/struts-tiles/faq.html";>Tiles
FAQ page</a> has a dead link to
http://cvs.apache.org/builds/jakarta-struts/nightly/sandbox/tiles-core/.
3.  The example in the <a
href="http://struts.apache.org/1.x/struts-tiles/apidocs/org/apache/struts/tiles/package-summary.html";>API
from 1.x Struts</a> has some extra escaping
of &amp;gt; characters.
4.  The
http://struts.apache.org/1.x/struts-tiles/examples.html
(Examples from 1.x Struts) page is incomplete.
5.  The
http://struts.apache.org/1.x/struts-tiles/tagreference.html
definition tag does not mention name. Name is a required
attribute for definition.

Solutions
1.  To use the Tiles in the current version of Struts, you
will need to
use the Struts servlet.  I have uploaded a working example
with all of the necessary components (minus the libraries)
at
http://www.guesttime.com/members/ledlogic/struts/TilesTest-0.1-src.jar

If you build this and deploy the war to a webserver, there
are 3 examples in the line of the original struts examples,
one for pure JSP (/jsp/jspExample.jsp), one with JSP +
tiles (/jsp/tilesExample.jsp), and the last is
(/jsp/tilesXMLExample.jsp).

2.  I am not sure if there are nightly builds
somewhere for tiles.  Who manages these for Struts?
3.  The javadoc needs to be fixed in the java
source for the tiles package.
4.  Perhaps some of the information here could be
incorporated. Do you need someone to finish the
documentation for
Tiles? If so I can help.
5.  See the above example source package for an
example.  I used name, not id.  Here is the sample code:

        <definition name="tilesXMLDefinition"
template="/jsp/layout.jsp">
                <put name="title"  value="Tiles XML Definition Example"
/>
                <put name="header" value="/jsp/header.jsp" />
                <put name="body"   value="/jsp/body.jsp" />
        </definition>


Jeff Conrad
[EMAIL PROTECTED]
dmitri2060 on ebay / half.com

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to