Author: greddin Date: Mon May 1 07:47:57 2006 New Revision: 398609 URL: http://svn.apache.org/viewcvs?rev=398609&view=rev Log: Standalone Tiles Test app without lib jars.
Added: struts/sandbox/trunk/tiles-test/ struts/sandbox/trunk/tiles-test/WEB-INF/ struts/sandbox/trunk/tiles-test/WEB-INF/lib/ struts/sandbox/trunk/tiles-test/WEB-INF/web.xml (with props) struts/sandbox/trunk/tiles-test/body.jsp (with props) struts/sandbox/trunk/tiles-test/header.jsp (with props) struts/sandbox/trunk/tiles-test/index.jsp (with props) struts/sandbox/trunk/tiles-test/layout.jsp (with props) struts/sandbox/trunk/tiles-test/testdef.jsp (with props) struts/sandbox/trunk/tiles-test/testput.jsp (with props) Added: struts/sandbox/trunk/tiles-test/WEB-INF/web.xml URL: http://svn.apache.org/viewcvs/struts/sandbox/trunk/tiles-test/WEB-INF/web.xml?rev=398609&view=auto ============================================================================== --- struts/sandbox/trunk/tiles-test/WEB-INF/web.xml (added) +++ struts/sandbox/trunk/tiles-test/WEB-INF/web.xml Mon May 1 07:47:57 2006 @@ -0,0 +1,33 @@ +<?xml version="1.0" encoding="ISO-8859-1"?> + +<web-app xmlns="http://java.sun.com/xml/ns/j2ee" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd" + version="2.4"> + + <display-name>Standalone Tiles Test Application</display-name> + + <!-- Standard Action Servlet Configuration --> +<!-- + <servlet> + <servlet-name>tiles</servlet-name> + <servlet-class>org.apache.tiles.servlet.TilesServlet</servlet-class> + <init-param> + <param-name>config</param-name> + <param-value>/WEB-INF/struts-config.xml</param-value> + </init-param> + <load-on-startup>2</load-on-startup> + </servlet> + + + <servlet-mapping> + <servlet-name>action</servlet-name> + <url-pattern>*.do</url-pattern> + </servlet-mapping> +--> + + <welcome-file-list> + <welcome-file>index.jsp</welcome-file> + </welcome-file-list> + +</web-app> Propchange: struts/sandbox/trunk/tiles-test/WEB-INF/web.xml ------------------------------------------------------------------------------ svn:eol-style = native Propchange: struts/sandbox/trunk/tiles-test/WEB-INF/web.xml ------------------------------------------------------------------------------ svn:keywords = Date Author Id Revision HeadURL Added: struts/sandbox/trunk/tiles-test/body.jsp URL: http://svn.apache.org/viewcvs/struts/sandbox/trunk/tiles-test/body.jsp?rev=398609&view=auto ============================================================================== --- struts/sandbox/trunk/tiles-test/body.jsp (added) +++ struts/sandbox/trunk/tiles-test/body.jsp Mon May 1 07:47:57 2006 @@ -0,0 +1 @@ +<div align="center"><b><i>This is a body</i></b></div> \ No newline at end of file Propchange: struts/sandbox/trunk/tiles-test/body.jsp ------------------------------------------------------------------------------ svn:eol-style = native Propchange: struts/sandbox/trunk/tiles-test/body.jsp ------------------------------------------------------------------------------ svn:keywords = Date Author Id Revision HeadURL Added: struts/sandbox/trunk/tiles-test/header.jsp URL: http://svn.apache.org/viewcvs/struts/sandbox/trunk/tiles-test/header.jsp?rev=398609&view=auto ============================================================================== --- struts/sandbox/trunk/tiles-test/header.jsp (added) +++ struts/sandbox/trunk/tiles-test/header.jsp Mon May 1 07:47:57 2006 @@ -0,0 +1,2 @@ +<strong>This is the header</strong> + \ No newline at end of file Propchange: struts/sandbox/trunk/tiles-test/header.jsp ------------------------------------------------------------------------------ svn:eol-style = native Propchange: struts/sandbox/trunk/tiles-test/header.jsp ------------------------------------------------------------------------------ svn:keywords = Date Author Id Revision HeadURL Added: struts/sandbox/trunk/tiles-test/index.jsp URL: http://svn.apache.org/viewcvs/struts/sandbox/trunk/tiles-test/index.jsp?rev=398609&view=auto ============================================================================== --- struts/sandbox/trunk/tiles-test/index.jsp (added) +++ struts/sandbox/trunk/tiles-test/index.jsp Mon May 1 07:47:57 2006 @@ -0,0 +1,10 @@ +<html> + +<body> + <h1>Standalone Tiles Test Application</h1> + + <a href="testput.jsp">Test Put Tag</a><br/> + <a href="testdef.jsp">Test Definition Tag</a><br/> +</body> + +</html> \ No newline at end of file Propchange: struts/sandbox/trunk/tiles-test/index.jsp ------------------------------------------------------------------------------ svn:eol-style = native Propchange: struts/sandbox/trunk/tiles-test/index.jsp ------------------------------------------------------------------------------ svn:keywords = Date Author Id Revision HeadURL Added: struts/sandbox/trunk/tiles-test/layout.jsp URL: http://svn.apache.org/viewcvs/struts/sandbox/trunk/tiles-test/layout.jsp?rev=398609&view=auto ============================================================================== --- struts/sandbox/trunk/tiles-test/layout.jsp (added) +++ struts/sandbox/trunk/tiles-test/layout.jsp Mon May 1 07:47:57 2006 @@ -0,0 +1,13 @@ +<%@ taglib uri="http://struts.apache.org/tags-tiles" prefix="tiles" %> + +<table border="2" width="300" bordercolor="Gray"> + <tr> + <td bgcolor="Blue"><strong><tiles:getAsString name="title"/></strong></td> + </tr> + <tr> + <td><tiles:insert attribute="header"/></td> + </tr> + <tr> + <td><tiles:insert attribute="body"/></td> + </tr> +</table> \ No newline at end of file Propchange: struts/sandbox/trunk/tiles-test/layout.jsp ------------------------------------------------------------------------------ svn:eol-style = native Propchange: struts/sandbox/trunk/tiles-test/layout.jsp ------------------------------------------------------------------------------ svn:keywords = Date Author Id Revision HeadURL Added: struts/sandbox/trunk/tiles-test/testdef.jsp URL: http://svn.apache.org/viewcvs/struts/sandbox/trunk/tiles-test/testdef.jsp?rev=398609&view=auto ============================================================================== --- struts/sandbox/trunk/tiles-test/testdef.jsp (added) +++ struts/sandbox/trunk/tiles-test/testdef.jsp Mon May 1 07:47:57 2006 @@ -0,0 +1,8 @@ +<%@ taglib uri="http://struts.apache.org/tags-tiles" prefix="tiles" %> + +<tiles:definition id="templateDefinition" template="layout.jsp"> + <tiles:put name="title" value="This is the title." /> + <tiles:put name="header" value="header.jsp" /> + <tiles:put name="body" value="body.jsp" /> +</tiles:definition> +<tiles:insert beanName="templateDefinition" /> \ No newline at end of file Propchange: struts/sandbox/trunk/tiles-test/testdef.jsp ------------------------------------------------------------------------------ svn:eol-style = native Propchange: struts/sandbox/trunk/tiles-test/testdef.jsp ------------------------------------------------------------------------------ svn:keywords = Date Author Id Revision HeadURL Added: struts/sandbox/trunk/tiles-test/testput.jsp URL: http://svn.apache.org/viewcvs/struts/sandbox/trunk/tiles-test/testput.jsp?rev=398609&view=auto ============================================================================== --- struts/sandbox/trunk/tiles-test/testput.jsp (added) +++ struts/sandbox/trunk/tiles-test/testput.jsp Mon May 1 07:47:57 2006 @@ -0,0 +1,7 @@ +<%@ taglib uri="http://struts.apache.org/tags-tiles" prefix="tiles" %> + +<tiles:insert template="layout.jsp"> + <tiles:put name="title" value="This is the title." /> + <tiles:put name="header" value="header.jsp" /> + <tiles:put name="body" value="body.jsp" /> +</tiles:insert> \ No newline at end of file Propchange: struts/sandbox/trunk/tiles-test/testput.jsp ------------------------------------------------------------------------------ svn:eol-style = native Propchange: struts/sandbox/trunk/tiles-test/testput.jsp ------------------------------------------------------------------------------ svn:keywords = Date Author Id Revision HeadURL