Return-Path: X-Original-To: apmail-struts-commits-archive@minotaur.apache.org Delivered-To: apmail-struts-commits-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id CCA61DEE9 for ; Fri, 5 Oct 2012 10:55:23 +0000 (UTC) Received: (qmail 69743 invoked by uid 500); 5 Oct 2012 10:55:23 -0000 Delivered-To: apmail-struts-commits-archive@struts.apache.org Received: (qmail 69652 invoked by uid 500); 5 Oct 2012 10:55:23 -0000 Mailing-List: contact commits-help@struts.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@struts.apache.org Delivered-To: mailing list commits@struts.apache.org Received: (qmail 69630 invoked by uid 99); 5 Oct 2012 10:55:22 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 05 Oct 2012 10:55:22 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 05 Oct 2012 10:55:20 +0000 Received: from eris.apache.org (localhost [127.0.0.1]) by eris.apache.org (Postfix) with ESMTP id CDB9323888CD for ; Fri, 5 Oct 2012 10:54:37 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1394440 - in /struts/struts2/trunk/src/main: resources/ resources/org/ resources/org/apache/ resources/org/apache/struts2/ resources/org/apache/struts2/portlet/ resources/org/apache/struts2/portlet/example/ webapp/ webapp/WEB-INF/ webapp/W... Date: Fri, 05 Oct 2012 10:54:37 -0000 To: commits@struts.apache.org From: lukaszlenart@apache.org X-Mailer: svnmailer-1.0.8-patched Message-Id: <20121005105437.CDB9323888CD@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: lukaszlenart Date: Fri Oct 5 10:54:36 2012 New Revision: 1394440 URL: http://svn.apache.org/viewvc?rev=1394440&view=rev Log: WW-3872 adds Tiles support to portlet example app Added: struts/struts2/trunk/src/main/resources/ struts/struts2/trunk/src/main/resources/org/ struts/struts2/trunk/src/main/resources/org/apache/ struts/struts2/trunk/src/main/resources/org/apache/struts2/ struts/struts2/trunk/src/main/resources/org/apache/struts2/portlet/ struts/struts2/trunk/src/main/resources/org/apache/struts2/portlet/example/ struts/struts2/trunk/src/main/resources/org/apache/struts2/portlet/example/FormExample-processTilesFreemarkerExample-validation.xml struts/struts2/trunk/src/main/resources/struts-tiles.xml struts/struts2/trunk/src/main/webapp/ struts/struts2/trunk/src/main/webapp/WEB-INF/ struts/struts2/trunk/src/main/webapp/WEB-INF/tiles/ struts/struts2/trunk/src/main/webapp/WEB-INF/tiles.xml struts/struts2/trunk/src/main/webapp/WEB-INF/tiles/footer.ftl struts/struts2/trunk/src/main/webapp/WEB-INF/tiles/footer.jsp struts/struts2/trunk/src/main/webapp/WEB-INF/tiles/formExample.jsp struts/struts2/trunk/src/main/webapp/WEB-INF/tiles/formExampleInputValidation.jsp struts/struts2/trunk/src/main/webapp/WEB-INF/tiles/header.jsp struts/struts2/trunk/src/main/webapp/WEB-INF/tiles/index.jsp struts/struts2/trunk/src/main/webapp/WEB-INF/tiles/layout.jsp Added: struts/struts2/trunk/src/main/resources/org/apache/struts2/portlet/example/FormExample-processTilesFreemarkerExample-validation.xml URL: http://svn.apache.org/viewvc/struts/struts2/trunk/src/main/resources/org/apache/struts2/portlet/example/FormExample-processTilesFreemarkerExample-validation.xml?rev=1394440&view=auto ============================================================================== --- struts/struts2/trunk/src/main/resources/org/apache/struts2/portlet/example/FormExample-processTilesFreemarkerExample-validation.xml (added) +++ struts/struts2/trunk/src/main/resources/org/apache/struts2/portlet/example/FormExample-processTilesFreemarkerExample-validation.xml Fri Oct 5 10:54:36 2012 @@ -0,0 +1,13 @@ + + + + + You must enter a first name + + + + + You must enter a last name + + + Added: struts/struts2/trunk/src/main/resources/struts-tiles.xml URL: http://svn.apache.org/viewvc/struts/struts2/trunk/src/main/resources/struts-tiles.xml?rev=1394440&view=auto ============================================================================== --- struts/struts2/trunk/src/main/resources/struts-tiles.xml (added) +++ struts/struts2/trunk/src/main/resources/struts-tiles.xml Fri Oct 5 10:54:36 2012 @@ -0,0 +1,27 @@ + + + + + + + + + formExampleTiles.index + formExampleTiles.index + + + + formExampleTiles.freemarker + + + + formExampleTiles.freemarker + formExampleTiles.freemarkerResult + + + + + + Added: struts/struts2/trunk/src/main/webapp/WEB-INF/tiles.xml URL: http://svn.apache.org/viewvc/struts/struts2/trunk/src/main/webapp/WEB-INF/tiles.xml?rev=1394440&view=auto ============================================================================== --- struts/struts2/trunk/src/main/webapp/WEB-INF/tiles.xml (added) +++ struts/struts2/trunk/src/main/webapp/WEB-INF/tiles.xml Fri Oct 5 10:54:36 2012 @@ -0,0 +1,46 @@ + + + + + + + + + + + + + + + + + + + + + + + + Added: struts/struts2/trunk/src/main/webapp/WEB-INF/tiles/footer.ftl URL: http://svn.apache.org/viewvc/struts/struts2/trunk/src/main/webapp/WEB-INF/tiles/footer.ftl?rev=1394440&view=auto ============================================================================== --- struts/struts2/trunk/src/main/webapp/WEB-INF/tiles/footer.ftl (added) +++ struts/struts2/trunk/src/main/webapp/WEB-INF/tiles/footer.ftl Fri Oct 5 10:54:36 2012 @@ -0,0 +1,5 @@ +
+<@s.url id="home" action="index" namespace="/view" /> +
+

Powered by Struts2 Portlet/Tiles Plugin | <@s.a href="${home}">Back to front page

+
Added: struts/struts2/trunk/src/main/webapp/WEB-INF/tiles/footer.jsp URL: http://svn.apache.org/viewvc/struts/struts2/trunk/src/main/webapp/WEB-INF/tiles/footer.jsp?rev=1394440&view=auto ============================================================================== --- struts/struts2/trunk/src/main/webapp/WEB-INF/tiles/footer.jsp (added) +++ struts/struts2/trunk/src/main/webapp/WEB-INF/tiles/footer.jsp Fri Oct 5 10:54:36 2012 @@ -0,0 +1,6 @@ +<%@ taglib prefix="s" uri="/struts-tags" %> +
+ +
+

Powered by Struts2 Portlet/Tiles Plugin | Back to front page

+
Added: struts/struts2/trunk/src/main/webapp/WEB-INF/tiles/formExample.jsp URL: http://svn.apache.org/viewvc/struts/struts2/trunk/src/main/webapp/WEB-INF/tiles/formExample.jsp?rev=1394440&view=auto ============================================================================== --- struts/struts2/trunk/src/main/webapp/WEB-INF/tiles/formExample.jsp (added) +++ struts/struts2/trunk/src/main/webapp/WEB-INF/tiles/formExample.jsp Fri Oct 5 10:54:36 2012 @@ -0,0 +1,5 @@ +<%@ taglib prefix="s" uri="/struts-tags" %> + +

Hello

+

+ Added: struts/struts2/trunk/src/main/webapp/WEB-INF/tiles/formExampleInputValidation.jsp URL: http://svn.apache.org/viewvc/struts/struts2/trunk/src/main/webapp/WEB-INF/tiles/formExampleInputValidation.jsp?rev=1394440&view=auto ============================================================================== --- struts/struts2/trunk/src/main/webapp/WEB-INF/tiles/formExampleInputValidation.jsp (added) +++ struts/struts2/trunk/src/main/webapp/WEB-INF/tiles/formExampleInputValidation.jsp Fri Oct 5 10:54:36 2012 @@ -0,0 +1,8 @@ +<%@ taglib prefix="s" uri="/struts-tags" %> +"> +

Input your name

+ + + + + Added: struts/struts2/trunk/src/main/webapp/WEB-INF/tiles/header.jsp URL: http://svn.apache.org/viewvc/struts/struts2/trunk/src/main/webapp/WEB-INF/tiles/header.jsp?rev=1394440&view=auto ============================================================================== --- struts/struts2/trunk/src/main/webapp/WEB-INF/tiles/header.jsp (added) +++ struts/struts2/trunk/src/main/webapp/WEB-INF/tiles/header.jsp Fri Oct 5 10:54:36 2012 @@ -0,0 +1,2 @@ +

Struts2 Portlet Tiles App Example

+
Added: struts/struts2/trunk/src/main/webapp/WEB-INF/tiles/index.jsp URL: http://svn.apache.org/viewvc/struts/struts2/trunk/src/main/webapp/WEB-INF/tiles/index.jsp?rev=1394440&view=auto ============================================================================== --- struts/struts2/trunk/src/main/webapp/WEB-INF/tiles/index.jsp (added) +++ struts/struts2/trunk/src/main/webapp/WEB-INF/tiles/index.jsp Fri Oct 5 10:54:36 2012 @@ -0,0 +1,13 @@ +<%@taglib prefix="s" uri="/struts-tags" %> +
+

This example illustrates the Struts/Portlet/Tiles Plugin.

+ +

Features

+
    +
  • + + View FreeMarker Example +
  • +
+ +
\ No newline at end of file Added: struts/struts2/trunk/src/main/webapp/WEB-INF/tiles/layout.jsp URL: http://svn.apache.org/viewvc/struts/struts2/trunk/src/main/webapp/WEB-INF/tiles/layout.jsp?rev=1394440&view=auto ============================================================================== --- struts/struts2/trunk/src/main/webapp/WEB-INF/tiles/layout.jsp (added) +++ struts/struts2/trunk/src/main/webapp/WEB-INF/tiles/layout.jsp Fri Oct 5 10:54:36 2012 @@ -0,0 +1,13 @@ +<%@ taglib uri="http://tiles.apache.org/tags-tiles" prefix="tiles" %> +<%@ taglib prefix="s" uri="/struts-tags" %> + + + +

+

+ +

+ +

Notice that this is a layout made in JSP

+ +