rleland 2004/01/30 14:32:08 Modified: doc/userGuide struts-tiles.xml Log: Correct Tiles documentation to refer to tiles not templates Revision Changes Path 1.13 +12 -12 jakarta-struts/doc/userGuide/struts-tiles.xml Index: struts-tiles.xml =================================================================== RCS file: /home/cvs/jakarta-struts/doc/userGuide/struts-tiles.xml,v retrieving revision 1.12 retrieving revision 1.13 diff -u -r1.12 -r1.13 --- struts-tiles.xml 16 Jan 2004 04:12:06 -0000 1.12 +++ struts-tiles.xml 30 Jan 2004 22:32:08 -0000 1.13 @@ -38,10 +38,10 @@ <p>Insert a tiles/component/template with the possibility to pass parameters (called attribute). A tile can be seen as a procedure that can take parameters or attributes. - <code><template:insert></code> allows to define these attributes and pass them to the inserted jsp page, + <code><tiles:insert></code> allows to define these attributes and pass them to the inserted jsp page, called template. - Attributes are defined using nested tag <code><template:put></code> or - <code><template:putList></code>. + Attributes are defined using nested tag <code><tiles:put></code> or + <code><tiles:putList></code>. </p> <p> You must specify one of this tag attribute : @@ -64,13 +64,13 @@ </p> <p><strong>Example : </strong></p> <pre><code> - <template:insert page="/basic/myLayout.jsp" flush="true"> - <template:put name="title" value="My first page" /> - <template:put name="header" value="/common/header.jsp" /> - <template:put name="footer" value="/common/footer.jsp" /> - <template:put name="menu" value="/basic/menu.jsp" /> - <template:put name="body" value="/basic/helloBody.jsp" /> - </template:insert></code></pre> + <tiles:insert page="/basic/myLayout.jsp" flush="true"> + <tiles:put name="title" value="My first page" /> + <tiles:put name="header" value="/common/header.jsp" /> + <tiles:put name="footer" value="/common/footer.jsp" /> + <tiles:put name="menu" value="/basic/menu.jsp" /> + <tiles:put name="body" value="/basic/helloBody.jsp" /> + </tiles:insert></code></pre> </info> <tagclass>org.apache.struts.taglib.tiles.InsertTag</tagclass> <bodycontent>JSP</bodycontent> @@ -112,7 +112,7 @@ <info> Name of the definition to insert. Definition are defined in a centralized file. For now, only definition from factory can be inserted with this attribute. - To insert a definition defined with tag <template:definition>, use beanName="". + To insert a definition defined with tag <tiles:definition>, use beanName="". </info> </attribute> @@ -387,7 +387,7 @@ <li>String : Content is printed directly.</li> <li>page | template : Content is included from specified URL. Name is used as an URL.</li> <li>definition : Value is the name of a definition defined in factory (xml file). Definition will be searched - in the inserted tile, in a <code><template:insert attribute="attributeName"></code> tag, where 'attributeName' + in the inserted tile, in a <code><tiles:insert attribute="attributeName"></code> tag, where 'attributeName' is the name used for this tag.</li> </ul> If 'type' attribute is not specified, content is 'untyped', unless it comes from a typed bean.
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]