cedric 01/12/27 09:31:16 Modified: contrib/tiles/web/doc/doc/portal welcome.jsp tilesCompsTemplates.jsp strutsIntegration.jsp revisionsCont.html revisions.jsp news.jsp download.jsp documentation.jsp contrib/tiles/web/doc/WEB-INF web.xml struts-config.xml contrib/tiles/web/doc/test index.jsp contrib/tiles/web/doc/tutorial/dynPortal Errors.jsp Channels.jsp contrib/tiles/web/doc/tutorial/layout classicLayout.jsp Log: New Tile version with individual controller and reload capabilities Revision Changes Path 1.2 +14 -5 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.1 retrieving revision 1.2 diff -u -r1.1 -r1.2 --- welcome.jsp 2001/08/01 14:36:45 1.1 +++ welcome.jsp 2001/12/27 17:31:16 1.2 @@ -8,8 +8,17 @@ Welcome to the <EM>Tiles </EM>website. This "portal" page is an example of what can be done with <EM>Tiles</EM> - . It is made by - assembling <EM>Tiles</EM>. It is an example of what you can do - with <EM>Tiles</EM>. <BR></FONT><FONT size=2>If you want to - know more, take a glance to the quick overview examples, or start by the - tutorial.</FONT> </P></td></tr></table> \ No newline at end of file + . It is made by + assembling <EM>Tiles</EM>. + </FONT> + <BR><FONT size=2> + You can : + <ul> + <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> + </ul> + </FONT> +</P> +</td></tr> +</table> \ No newline at end of file 1.2 +2 -4 jakarta-struts/contrib/tiles/web/doc/doc/portal/tilesCompsTemplates.jsp Index: tilesCompsTemplates.jsp =================================================================== RCS file: /home/cvs/jakarta-struts/contrib/tiles/web/doc/doc/portal/tilesCompsTemplates.jsp,v retrieving revision 1.1 retrieving revision 1.2 diff -u -r1.1 -r1.2 --- tilesCompsTemplates.jsp 2001/08/01 14:36:45 1.1 +++ tilesCompsTemplates.jsp 2001/12/27 17:31:16 1.2 @@ -8,10 +8,8 @@ known as "Components". But as components means all and everything, we have choose to rename them to Tiles. </FONT></P> <P><FONT size=2>Tiles provide a - superset of Template tags as defined by David Geary : you can find all + superset of Template tags as defined in Struts by David Geary : you can find all tags and behavior defined by Templates. But, Tiles </FONT><FONT size=2> go one step beyond and extend the concept of "templates" to the concept of "parameterized components" or "Tiles".</FONT></P> - <P><FONT size=2> For those - already using Components and wanting to migrate to Tiles, there is a - migration path.</FONT></P></TD></TR></TABLE> \ No newline at end of file +</TD></TR></TABLE> \ No newline at end of file 1.2 +17 -15 jakarta-struts/contrib/tiles/web/doc/doc/portal/strutsIntegration.jsp Index: strutsIntegration.jsp =================================================================== RCS file: /home/cvs/jakarta-struts/contrib/tiles/web/doc/doc/portal/strutsIntegration.jsp,v retrieving revision 1.1 retrieving revision 1.2 diff -u -r1.1 -r1.2 --- strutsIntegration.jsp 2001/08/01 14:36:45 1.1 +++ strutsIntegration.jsp 2001/12/27 17:31:16 1.2 @@ -1,24 +1,21 @@ <table width="100%"> <tr> -<th bgcolor="aqua"><font size="+1"><strong>Integration with - Struts</STRONG></FONT></TH></TR> +<th bgcolor="aqua"> + <font size="+1"><strong>Tiles and Struts</STRONG></FONT> +</TH> +</TR> <TR> <TD> <P> - <FONT size=2>Integration of - Tiles / Component in the Struts project is started.</FONT></P> + <FONT size=2>Tiles are actually shipped with Struts</FONT></P> <P> - <FONT size=2> - I still try to - minimize modifications in Struts code.</FONT> - <br><FONT size=2> Rather than - rewriting Struts, I prefer to subclass classes needing modifications. Tags - needing modification are also subclassed, and declared in a separate tld - file.</FONT> - <FONT size=2>Following is a list of - actual modifications :</FONT> </P></TD></TR> + <FONT size=2> + Tiles and Struts code are clearly separated. In fact, Tiles can run without Struts. But using + both give you interresting features, like forwarding an action to a tile's definition. + </FONT> + <FONT size=2>Following is a list of actual modifications :</FONT> </P></TD></TR> <TR> - <TD><FONT size=2><b>Action Servlet</B></FONT></TD></TR> + <TD><FONT size=2><b>Tile Action Servlet</B></FONT></TD></TR> <TR> <TD> <UL> @@ -28,7 +25,12 @@ able to subclass servlet, and override the forward mechanism. </FONT> <LI><FONT size=2>Needed if you want to forward to a definition in - struts-config.xml.</FONT></LI></UL></TD></TR> + struts-config.xml.</FONT></LI> + <LI><FONT size=2>A ready to run servlet is provided.</FONT></LI> + </UL> + + </TD> + </TR> <TR> <TD><FONT size=2><STRONG> <EM>text</EM> tag</STRONG></FONT></TD></TR> 1.2 +94 -0 jakarta-struts/contrib/tiles/web/doc/doc/portal/revisionsCont.html Index: revisionsCont.html =================================================================== RCS file: /home/cvs/jakarta-struts/contrib/tiles/web/doc/doc/portal/revisionsCont.html,v retrieving revision 1.1 retrieving revision 1.2 diff -u -r1.1 -r1.2 --- revisionsCont.html 2001/08/01 14:36:45 1.1 +++ revisionsCont.html 2001/12/27 17:31:16 1.2 @@ -2,6 +2,100 @@ <tr> <th bgcolor="aqua"><FONT size=4>History (con't)</FONT></TH></TR> <TR> + <TD><FONT size=2><STRONG> 27 sept. 2001</STRONG> </FONT></TD></TR> + <TR> + <TD> + <UL> + <LI><FONT size=2> + Correct + bug preventing definitions file to be loaded when using + latest commons-digester.jar.</FONT> + <LI><FONT size=2>Remove component-config.tld + (replaced by tiles-config.tld).</FONT> + <LI><FONT size=2>Add a tilesForStruts1.0.jar file, intended for + Struts1.0</FONT></LI></UL></TD></TR> + <TR> + <TD><FONT size=2><STRONG> 13 sept. 2001</STRONG> </FONT></TD></TR> + <TR> + <TD> + <UL> + <LI><FONT size=2>Correct bug in + getAsString. Nothing is written when ignore=true and no attribute + is found.</FONT></LI></UL></TD></TR> + <TR> + <TD><FONT size=2><STRONG> 09 sept. 2001</STRONG> </FONT></TD></TR> + <TR> + <TD> + <UL> + <LI><FONT size=2> Modify + ComponentActionServlet. It now allows + to :</FONT> + <ul> + <LI><FONT size=2> use a Struts + action as the page + attribute of an <insert> + or <definition></FONT> + <LI><FONT size=2>modify tile attributes inside + action</FONT> + <LI><FONT size=2>associate an action with a tile, + and this for each tile.</FONT></LI> + </ul> + <LI><FONT size=2>Update and modify the "invoice" + example. </FONT></LI></UL></TD></TR> + <TR> + <TD><FONT size=2><STRONG> 30 jul. 2001</STRONG> </FONT></TD></TR> + <TR> + <TD> + <UL> + <LI><FONT size=2> Merge Documentation + and tutorial in one + war file.</FONT></LI></UL></TD></TR> + <TR> + <TD><FONT size=2><STRONG> 25 jul. 2001</STRONG> </FONT></TD></TR> + <TR> + <TD> + <UL> + <LI><FONT size=2> Now use + commons.Digester, according to new + Struts policy.</FONT></LI></UL></TD></TR> + <TR> + <TD><FONT size=2><STRONG> 19 jul. 2001</STRONG> </FONT></TD></TR> + <TR> + <TD> + <UL> + <LI><FONT size=2> Components + become Tiles.</FONT> + <LI><FONT size=2>Start + integration in Struts</FONT> + <LI><FONT size=2>Change code + package names accordingly</FONT></LI></UL></TD></TR> + <TR> + <TD><FONT size=2><STRONG> 04 jul. 2001</STRONG> </FONT></TD></TR> + <TR> + <TD> + <UL> + <LI><FONT size=2> Add flush + attribute to get</FONT> + <LI><FONT size=2>Update + tutorial</FONT> + <LI><FONT size=2>Add a DTD for + configuration file. However, DTD is not used (yet) for + validation.</FONT> </LI></UL></TD></TR> + <TR> + <TD><FONT size=2><STRONG> 02 jul. 2001</STRONG> </FONT></TD></TR> + <TR> + <TD> + <UL> + <LI><FONT size=2>Tested + successfully on Tomcat-3.2.1, Tomcat-4.0b5, Orion-1.4.5, + Resin-2.0.0</FONT> + <LI><FONT size=2>Correct the + release() bug preventing framework to run on Resin-2.0.0</FONT> + <UL> + <LI><FONT size=2>Remove calls + to release() in doEndTag(), call to releaseInternal() instead.</FONT> + </LI></UL></LI></UL></TD></TR> + <TR> <TD><FONT size=2><STRONG> 17 jun. 2001</STRONG> </FONT></TD></TR> <TR> <TD> 1.7 +15 -97 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.6 retrieving revision 1.7 diff -u -r1.6 -r1.7 --- revisions.jsp 2001/11/02 16:50:04 1.6 +++ revisions.jsp 2001/12/27 17:31:16 1.7 @@ -2,6 +2,19 @@ <tr> <th bgcolor="aqua"><FONT size=4>History</FONT></th></tr> <TR> + <TD><FONT size=2><STRONG> 27 Dec. 2001</STRONG> </FONT></TD></TR> + <TR> + <TD> + <UL> + <LI><FONT size=2>Add commented examples portal</FONT></LI> + <LI><FONT size=2>Allow controller to be associated to a Tile</FONT></LI> + <LI><FONT size=2>Allow beans set in <put> and <putList> tags</FONT></LI> + <LI><FONT size=2>Add a reload action, and a reloadable factory wrapper</FONT></LI> + <LI><FONT size=2>Move NoOpAction to actions subdirectory</FONT></LI> + </UL> + </TD> + </TR> + <TR> <TD><FONT size=2><STRONG> 02 nov. 2001</STRONG> </FONT></TD></TR> <TR> <TD> @@ -32,102 +45,7 @@ example "dynamic portal"</FONT> <LI><FONT size=2>Add Tile Rss Channel (Thanks Ted Husted)</FONT></LI></UL></TD></TR> - <TR> - <TD><FONT size=2><STRONG> 27 sept. 2001</STRONG> </FONT></TD></TR> - <TR> - <TD> - <UL> - <LI><FONT size=2> - Correct - bug preventing definitions file to be loaded when using - latest commons-digester.jar.</FONT> - <LI><FONT size=2>Remove component-config.tld - (replaced by tiles-config.tld).</FONT> - <LI><FONT size=2>Add a tilesForStruts1.0.jar file, intended for - Struts1.0</FONT></LI></UL></TD></TR> - <TR> - <TD><FONT size=2><STRONG> 13 sept. 2001</STRONG> </FONT></TD></TR> - <TR> - <TD> - <UL> - <LI><FONT size=2>Correct bug in - getAsString. Nothing is written when ignore=true and no attribute - is found.</FONT></LI></UL></TD></TR> - <TR> - <TD><FONT size=2><STRONG> 09 sept. 2001</STRONG> </FONT></TD></TR> - <TR> - <TD> - <UL> - <LI><FONT size=2> Modify - ComponentActionServlet. It now allows - to :</FONT> - <ul> - <LI><FONT size=2> use a Struts - action as the page - attribute of an <insert> - or <definition></FONT> - <LI><FONT size=2>modify tile attributes inside - action</FONT> - <LI><FONT size=2>associate an action with a tile, - and this for each tile.</FONT></LI> - </ul> - <LI><FONT size=2>Update and modify the "invoice" - example. </FONT></LI></UL></TD></TR> - <TR> - <TD><FONT size=2><STRONG> 30 jul. 2001</STRONG> </FONT></TD></TR> - <TR> - <TD> - <UL> - <LI><FONT size=2> Merge Documentation - and tutorial in one - war file.</FONT></LI></UL></TD></TR> - <TR> - <TD><FONT size=2><STRONG> 25 jul. 2001</STRONG> </FONT></TD></TR> - <TR> - <TD> - <UL> - <LI><FONT size=2> Now use - commons.Digester, according to new - Struts policy.</FONT></LI></UL></TD></TR> - <TR> - <TD><FONT size=2><STRONG> 19 jul. 2001</STRONG> </FONT></TD></TR> - <TR> - <TD> - <UL> - <LI><FONT size=2> Components - become Tiles.</FONT> - <LI><FONT size=2>Start - integration in Struts</FONT> - <LI><FONT size=2>Change code - package names accordingly</FONT></LI></UL></TD></TR> - <TR> - <TD><FONT size=2><STRONG> 04 jul. 2001</STRONG> </FONT></TD></TR> - <TR> - <TD> - <UL> - <LI><FONT size=2> Add flush - attribute to get</FONT> - <LI><FONT size=2>Update - tutorial</FONT> - <LI><FONT size=2>Add a DTD for - configuration file. However, DTD is not used (yet) for - validation.</FONT> </LI></UL></TD></TR> - <TR> - <TD><FONT size=2><STRONG> 02 jul. 2001</STRONG> </FONT></TD></TR> - <TR> - <TD> - <UL> - <LI><FONT size=2>Tested - successfully on Tomcat-3.2.1, Tomcat-4.0b5, Orion-1.4.5, - Resin-2.0.0</FONT> - <LI><FONT size=2>Correct the - release() bug preventing framework to run on Resin-2.0.0</FONT> - <UL> - <LI><FONT size=2>Remove calls - to release() in doEndTag(), call to releaseInternal() instead.</FONT> - </LI></UL></LI></UL></TD></TR> - <TR> - <TD><FONT size=2><STRONG> <A - href="doc/revisionsCont.html"><FONT + <TR> + <TD><FONT size=2><STRONG> <A href="<%=request.getContextPath()%>/doc/portal/revisionsCont.html"><FONT size=2><STRONG>more ...</STRONG></FONT></A></STRONG></FONT></TD></TR></table> 1.3 +33 -13 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.2 retrieving revision 1.3 diff -u -r1.2 -r1.3 --- news.jsp 2001/10/08 13:50:10 1.2 +++ news.jsp 2001/12/27 17:31:16 1.3 @@ -3,17 +3,37 @@ <th bgcolor="aqua"><font size="+1"><strong>News</strong></font></th></tr> <tr> <td> - <P><FONT color=#ff0000><EM><STRONG>New Example : - Dynamic Portal <FONT - color=#000000>(draft)<BR></FONT></STRONG></EM></FONT><FONT color=#000000 - size=2>An example of dynamic portal is shipped with distribution. It - allows user to select and place Tiles in its portal, from a web - browser.</FONT></P> - <P><STRONG><EM><FONT color=#ff0000>New Tiles : Rss - Channel<BR></FONT></EM></STRONG><FONT color=#000000 size=2>This Tile - allows to show an Rss Channel. It is possible to specify the Rss URL. This - Tile is used in the dynamic portal example.</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 + body you want in which tabs, and that all ! + </FONT></P> + <P><FONT color=#ff0000><EM><STRONG>Commented Examples</STRONG></EM></FONT> + <br><FONT color=#000000 size=2> + A lot of interesting examples have been revisited and commented in a "portal" fashion. + Check "Live Examples" menu entry. + </FONT></P> + <P><STRONG><EM><FONT color=#ff0000>Each Tile can have its own controller !<BR></FONT></EM></STRONG> + <FONT color=#000000 size=2> + It is now possible to associate a controller to each Tile. This controller (Java code + or struts action) is called immediately before the Tile jsp page. It is useful to prepare + data to be shown by jsp page. + </FONT></P> + <P><STRONG><EM><FONT color=#ff0000>Reload Action<BR></FONT></EM></STRONG> + <FONT color=#000000 size=2> + There is now a reload action, and a reloadable factory wrapper allowing to reload Tiles + configuration files without restarting web server. + </FONT></P> + <P><STRONG><EM><FONT color=#ff0000>Use and Set Bean in configuration file<BR></FONT></EM></STRONG> + <FONT color=#000000 size=2> + It is now possible to use and set beans in the configuration file. Such bean can then be + set as a <put> or <putList> tag value. + <br> + This increase and facilitate menu creation. + </FONT></P> <P> - <FONT size=2> - Updated 08 Oct. - 2001</FONT></P></td></tr></table> \ No newline at end of file + <FONT size=2>Check "History" for latest modifications (further in this page)</FONT></P> + <P> + <FONT size=2>Updated 26 Dec. 2001</FONT></P> + +</td></tr></table> \ No newline at end of file 1.7 +3 -4 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.6 retrieving revision 1.7 diff -u -r1.6 -r1.7 --- download.jsp 2001/11/02 16:50:04 1.6 +++ download.jsp 2001/12/27 17:31:16 1.7 @@ -15,8 +15,7 @@ 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 11 02 (with struts 2001 10 - 15 - 1.1dev)</font> </div> + <font size="2"> Latest build : 2001 12 26 (with struts 2001 12 26 - 1.1dev)</font> </div> <div align="center"> <table border="2"> <tr> @@ -87,6 +86,6 @@ </div></td></tr></table></div> <div align="center"> <font color="#ff0000"><strong>WARNING</strong></font> : <font - size="2">For those previously using Components, - you can migrate to Tiles by following this <A href="doc/comps2Tiles.html">migration + 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> 1.3 +3 -6 jakarta-struts/contrib/tiles/web/doc/doc/portal/documentation.jsp Index: documentation.jsp =================================================================== RCS file: /home/cvs/jakarta-struts/contrib/tiles/web/doc/doc/portal/documentation.jsp,v retrieving revision 1.2 retrieving revision 1.3 diff -u -r1.2 -r1.3 --- documentation.jsp 2001/10/08 13:50:10 1.2 +++ documentation.jsp 2001/12/27 17:31:16 1.3 @@ -3,16 +3,13 @@ <th bgColor=#00ffff ><font size="+1"><strong>Documentation</strong></font></th> </tr> <TR> - <TD><div align="center"><A href="doc/overview.jsp"><FONT - size=2>Overview</FONT></A></div></TD></TR> - <TR> - <TD><div align="center"><A href="doc/installation.jsp"><FONT + <TD><div align="center"><A href="<%=request.getContextPath()%>/doc/installation.jsp"><FONT size=2>Installation / Requirements</FONT> </A></div></TD></TR> <TR> - <TD><A href="doc/tutorial.jsp"><P align=center><FONT + <TD><A href="<%=request.getContextPath()%>/doc/tutorial.jsp"><P align=center><FONT size=2>Tutorial</FONT></A></P></TD></TR> <TR> - <TD><div align="center"><A href="api/index.html"><FONT + <TD><div align="center"><A href="<%=request.getContextPath()%>/api/index.html"><FONT size=2>API</FONT></A></div></TD></TR> </table> 1.3 +1 -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.2 retrieving revision 1.3 diff -u -r1.2 -r1.3 --- web.xml 2001/09/28 16:41:45 1.2 +++ web.xml 2001/12/27 17:31:16 1.3 @@ -12,7 +12,7 @@ <servlet-class>org.apache.struts.tiles.ActionComponentServlet</servlet-class> <init-param> <param-name>definitions-config</param-name> - <param-value>/WEB-INF/tilesDefinitions.xml,/WEB-INF/tutorialDefinitions.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> 1.5 +52 -4 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.4 retrieving revision 1.5 diff -u -r1.4 -r1.5 --- struts-config.xml 2001/11/02 16:50:04 1.4 +++ struts-config.xml 2001/12/27 17:31:16 1.5 @@ -24,8 +24,10 @@ <!-- Logon form bean --> <form-bean name="invoiceForm" type="org.apache.struts.example.tiles.invoice.InvoiceForm"/> - <form-bean name="portalPrefsForm" - type="org.apache.struts.example.tiles.dynPortal.PortalPrefsForm"/> + <form-bean name="myPortalSettingsForm" + type="org.apache.struts.example.tiles.portal.PortalSettingsForm"/> + <form-bean name="myMenuSettingsForm" + type="org.apache.struts.example.tiles.portal.MenuSettingsForm"/> </form-beans> @@ -81,7 +83,7 @@ </action> <!-- ======================================================= --> - <!-- Dynamic portal actions --> + <!-- Tutorial Dynamic portal actions --> <!-- ======================================================= --> <!-- Dynamic Portal user lists retrieving action --> <action path="/actions/myPortal" @@ -91,7 +93,7 @@ <!-- Dynamic Portal user lists set action : no op action forwarding to tile --> <action path="/actions/myPortalPrefs" - type="org.apache.struts.tiles.NoOpAction" + type="org.apache.struts.tiles.actions.NoOpAction" name="portalPrefsForm"> <forward name="success" path="myDynamicPortalPreferences"/> </action> @@ -106,6 +108,41 @@ <!-- ======================================================= --> + <!-- Examples Portal 1.1 actions --> + <!-- ======================================================= --> + <!-- Dynamic Portal user lists retrieving action --> + <action path="/portal/myPortal" + type="org.apache.struts.example.tiles.portal.UserPortalAction"> + </action> + + <!-- Tiles Action associated to portal settings --> + <action path="/examples/controller/myPortalSettings" + type="org.apache.struts.example.tiles.portal.UserPortalSettingsAction" + name="myPortalSettingsForm" > + </action> + + <!-- Portal settings page entrance : forward to appropriate page definition --> + <action path="/examples/myPortalSettings" + type="org.apache.struts.tiles.actions.NoOpAction" + name="myPortalSettingsForm" > + <forward name="success" path="examples.portal.settings.page"/> + </action> + + <!-- Tiles Action associated to Tile myMenuSettings --> + <action path="/examples/controller/myMenuSettings" + type="org.apache.struts.example.tiles.portal.UserMenuSettingsAction" + name="myMenuSettingsForm" > + </action> + + <!-- Menu Settings page entrance : forward to appropriate page definition --> + <action path="/examples/myMenuSettings" + type="org.apache.struts.tiles.actions.NoOpAction" + name="myMenuSettingsForm" > + <forward name="success" path="examples.userMenu.settings.page"/> + </action> + + + <!-- ======================================================= --> <!-- Rss Channel --> <!-- ======================================================= --> <action path="/actions/rssChannel" @@ -129,6 +166,17 @@ <forward name="success" path="forward.example.success.page"/> </action> + <!-- ======================================================= --> + <!-- Admin --> + <!-- ======================================================= --> + <!-- The standard administrative actions available with Struts --> + <!-- These would be either omitted or protected by security --> + <!-- in a real application deployment --> + <action path="/admin/tiles/reload" + type="org.apache.struts.tiles.actions.ReloadDefinitionsAction"/> + <action path="/admin/tiles/view" + type="org.apache.struts.tiles.actions.ViewDefinitionsAction"/> + </action-mappings> 1.3 +15 -13 jakarta-struts/contrib/tiles/web/doc/test/index.jsp Index: index.jsp =================================================================== RCS file: /home/cvs/jakarta-struts/contrib/tiles/web/doc/test/index.jsp,v retrieving revision 1.2 retrieving revision 1.3 diff -u -r1.2 -r1.3 --- index.jsp 2001/09/10 13:13:04 1.2 +++ index.jsp 2001/12/27 17:31:16 1.3 @@ -1,19 +1,21 @@ - -<P> - Components -tests allow to rapidly check if the components installation is correct. You can test parts -separately, or all in one. </P> -<P>If testing separately, you will only see the output result.</P> -<P>If testing all in one, you will see the main code used, and the result. You can compare results -with the quick overview page from main site to check if all is ok</P> +<h1>Tiles Simple Tests</h1> +<P> + + These tests allow quick checking of +Tiles behaviors and Tiles instalation. </P> +<P>It is possible to run each test separately, or all in one. In this later +case, test results and test codes are displayed in the same page. You can +compare the resulting page with the quick overview page from main site to check +if all is ok.</P> +<P>To run tests, follow the "all in one" link. If there is a problem, try +each separate test in turn to localize which one fail.</P> <UL> - <LI><A href="testBasic.jsp">basic tests</A>(no - instances) + <LI><A href="testAll.jsp">All in one</A> (main code + test results) + <LI><A href="testBasic.jsp">basic tests</A>(no definitions) <LI><A href="testIgnore.jsp">Test 'ignore' attribute, and basic errors processing</A> <LI><A href="testList.jsp">test lists</A> <LI><A href="testDefinitions.jsp">test definitions</A> <LI><A href="testRole.jsp">test role (With Tomcat, use 'tomcat' as userid and password)</A> <LI><A href="testStrutsAction.jsp">test struts action integration and behavior</A> - <LI><A href="testAll.jsp">All in -one</A> (main code + test -results) </LI></UL> \ No newline at end of file + <LI><A href="testController.jsp">test tile controller calls</A> +</LI></UL> \ No newline at end of file 1.2 +0 -0 jakarta-struts/contrib/tiles/web/doc/tutorial/dynPortal/Errors.jsp Index: Errors.jsp =================================================================== RCS file: /home/cvs/jakarta-struts/contrib/tiles/web/doc/tutorial/dynPortal/Errors.jsp,v retrieving revision 1.1 retrieving revision 1.2 diff -u -r1.1 -r1.2 --- Errors.jsp 2001/11/05 14:06:10 1.1 +++ Errors.jsp 2001/12/27 17:31:16 1.2 @@ -5,7 +5,7 @@ * @parameters errors * @author Ted Husted * @author Cedric Dumoulin - * @version $Revision: 1.1 $ $Date: 2001/11/05 14:06:10 $ + * @version $Revision: 1.2 $ $Date: 2001/12/27 17:31:16 $ */ --%> <%@ page language="java" %> 1.2 +0 -0 jakarta-struts/contrib/tiles/web/doc/tutorial/dynPortal/Channels.jsp Index: Channels.jsp =================================================================== RCS file: /home/cvs/jakarta-struts/contrib/tiles/web/doc/tutorial/dynPortal/Channels.jsp,v retrieving revision 1.1 retrieving revision 1.2 diff -u -r1.1 -r1.2 --- Channels.jsp 2001/10/08 13:51:39 1.1 +++ Channels.jsp 2001/12/27 17:31:16 1.2 @@ -5,7 +5,7 @@ * @parameters ListArray CHANNELS * @author Ted Husted * @author Cedric Dumoulin - * @version $Revision: 1.1 $ $Date: 2001/10/08 13:51:39 $ + * @version $Revision: 1.2 $ $Date: 2001/12/27 17:31:16 $ */ --%> <%@ page language="java" %> 1.2 +14 -8 jakarta-struts/contrib/tiles/web/doc/tutorial/layout/classicLayout.jsp Index: classicLayout.jsp =================================================================== RCS file: /home/cvs/jakarta-struts/contrib/tiles/web/doc/tutorial/layout/classicLayout.jsp,v retrieving revision 1.1 retrieving revision 1.2 diff -u -r1.1 -r1.2 --- classicLayout.jsp 2001/08/01 14:36:47 1.1 +++ classicLayout.jsp 2001/12/27 17:31:16 1.2 @@ -1,26 +1,32 @@ -<%@ taglib uri="/WEB-INF/tiles.tld" prefix="comp" %> +<%@ taglib uri="/WEB-INF/tiles.tld" prefix="tiles" %> -<%-- Layout component - parameters : title, header, menu, body, footer +<%-- Layout Tiles + This layout render a header, left menu, body and footer. + @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()%>/tutorial/layout/stylesheet.css" type="text/css"> - <title><comp:getAsString name="title"/></title> + <title><tiles:getAsString name="title"/></title> </HEAD> <body bgcolor="#ffffff" text="#000000" link="#023264" alink="#023264" vlink="#023264"> <table border="0" width="100%" cellspacing="5"> <tr> - <td colspan="2"><comp:insert attribute="header" /></td> + <td colspan="2"><tiles:insert attribute="header" /></td> </tr> <tr> <td width="140" valign="top"> - <comp:insert attribute='menu'/> + <tiles:insert attribute='menu'/> </td> <td valign="top" align="left"> - <comp:insert attribute='body' /> + <tiles:insert attribute='body' /> </td> </tr> <tr> @@ -30,7 +36,7 @@ </tr> <tr> <td colspan="2"> - <comp:insert attribute="footer" /> + <tiles:insert attribute="footer" /> </td> </tr> </table>
-- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>