tiles-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From apetre...@apache.org
Subject svn commit: r513243 - in /tiles/examples/trunk/tiles-showcase/src/main/webapp: WEB-INF/tiles-tutorial-defs.xml common/viewSrcBody.jsp tutorial/common/menu/menuSrc.jsp tutorial/common/menuViewSrc.jsp
Date Thu, 01 Mar 2007 09:44:53 GMT
Author: apetrelli
Date: Thu Mar  1 01:44:53 2007
New Revision: 513243

URL: http://svn.apache.org/viewvc?view=rev&rev=513243
Log:
TILESSHOW-7
Corrected JSP code to make viewing of the source work.

Modified:
    tiles/examples/trunk/tiles-showcase/src/main/webapp/WEB-INF/tiles-tutorial-defs.xml
    tiles/examples/trunk/tiles-showcase/src/main/webapp/common/viewSrcBody.jsp
    tiles/examples/trunk/tiles-showcase/src/main/webapp/tutorial/common/menu/menuSrc.jsp
    tiles/examples/trunk/tiles-showcase/src/main/webapp/tutorial/common/menuViewSrc.jsp

Modified: tiles/examples/trunk/tiles-showcase/src/main/webapp/WEB-INF/tiles-tutorial-defs.xml
URL: http://svn.apache.org/viewvc/tiles/examples/trunk/tiles-showcase/src/main/webapp/WEB-INF/tiles-tutorial-defs.xml?view=diff&rev=513243&r1=513242&r2=513243
==============================================================================
--- tiles/examples/trunk/tiles-showcase/src/main/webapp/WEB-INF/tiles-tutorial-defs.xml (original)
+++ tiles/examples/trunk/tiles-showcase/src/main/webapp/WEB-INF/tiles-tutorial-defs.xml Thu
Mar  1 01:44:53 2007
@@ -162,40 +162,40 @@
   <!-- Menu sources definition -->
 <definition name="menu.src" template="/tutorial/common/menuViewSrc.jsp" >
   <put-list-attribute name="list" >
-    <add-attribute value="/index.jsp" />
-    <add-attribute value="/basicPage.jsp" />
-    <add-attribute value="/portalPage.jsp" />
-    <add-attribute value="/firstDefinition.jsp" />
-    <add-attribute value="/overloadDefinitionParameters.jsp" />
-    <add-attribute value="/extendedDefinition.jsp" />
-    <add-attribute value="/definitionTag.jsp" />
-    <add-attribute value="/extendedDefinitionTag.jsp" />
-    <add-attribute value="/basicFramesetPage.jsp" />
-    <add-attribute value="/WEB-INF/templateDefinitions.xml" />
+    <add-attribute value="/tutorial/index.jsp" />
+    <add-attribute value="/tutorial/basicPage.jsp" />
+    <add-attribute value="/tutorial/portalPage.jsp" />
+    <add-attribute value="/tutorial/firstDefinition.jsp" />
+    <add-attribute value="/tutorial/overloadDefinitionParameters.jsp" />
+    <add-attribute value="/tutorial/extendedDefinition.jsp" />
+    <add-attribute value="/tutorial/definitionTag.jsp" />
+    <add-attribute value="/tutorial/extendedDefinitionTag.jsp" />
+    <add-attribute value="/tutorial/basicFramesetPage.jsp" />
+    <add-attribute value="/WEB-INF/tiles-tutorial-defs.xml" />
 
-    <add-attribute value="/basic/myLayout.jsp" />
-    <add-attribute value="/basic/hello.jsp" />
-    <add-attribute value="/basic/menu.jsp" />
-    <add-attribute value="/portal/portalBody.jsp" />
+    <add-attribute value="/tutorial/basic/myLayout.jsp" />
+    <add-attribute value="/tutorial/basic/hello.jsp" />
+    <add-attribute value="/tutorial/basic/menu.jsp" />
+    <add-attribute value="/tutorial/portal/portalBody.jsp" />
 
-    <add-attribute value="/common/footer.jsp" />
-    <add-attribute value="/common/menu.jsp" />
-    <add-attribute value="/common/submenu.jsp" />
-    <add-attribute value="/common/menuViewSrc.jsp" />
-    <add-attribute value="/common/viewSrc.jsp" />
-    <add-attribute value="/common/viewSrcBody.jsp" />
+    <add-attribute value="/tutorial/common/footer.jsp" />
+    <add-attribute value="/tutorial/common/menu.jsp" />
+    <add-attribute value="/tutorial/common/submenu.jsp" />
+    <add-attribute value="/tutorial/common/menuViewSrc.jsp" />
+    <add-attribute value="/tutorial/common/viewSrc.jsp" />
+    <add-attribute value="/tutorial/common/viewSrcBody.jsp" />
 	
-    <add-attribute value="/common/menu/menuLogo.jsp" />
-    <add-attribute value="/common/menu/menuLinks.jsp" />
-    <add-attribute value="/common/menu/menuSrc.jsp" />
+    <add-attribute value="/tutorial/common/menu/menuLogo.jsp" />
+    <add-attribute value="/tutorial/common/menu/menuLinks.jsp" />
+    <add-attribute value="/tutorial/common/menu/menuSrc.jsp" />
 
-    <add-attribute value="/layout/classicLayout.jsp" />
-    <add-attribute value="/layout/columnsLayout.jsp" />
-    <add-attribute value="/layout/vboxLayout.jsp" />
+    <add-attribute value="/tutorial/layout/classicLayout.jsp" />
+    <add-attribute value="/tutorial/layout/columnsLayout.jsp" />
+    <add-attribute value="/tutorial/layout/vboxLayout.jsp" />
 	
-    <add-attribute value="/invoice/editAddress.jsp" />
-    <add-attribute value="/invoice/editInvoice.jsp" />
-    <add-attribute value="/invoice/index.jsp" />
+    <add-attribute value="/tutorial/invoice/editAddress.jsp" />
+    <add-attribute value="/tutorial/invoice/editInvoice.jsp" />
+    <add-attribute value="/tutorial/invoice/index.jsp" />
   </put-list-attribute>
 </definition>
 

Modified: tiles/examples/trunk/tiles-showcase/src/main/webapp/common/viewSrcBody.jsp
URL: http://svn.apache.org/viewvc/tiles/examples/trunk/tiles-showcase/src/main/webapp/common/viewSrcBody.jsp?view=diff&rev=513243&r1=513242&r2=513243
==============================================================================
--- tiles/examples/trunk/tiles-showcase/src/main/webapp/common/viewSrcBody.jsp (original)
+++ tiles/examples/trunk/tiles-showcase/src/main/webapp/common/viewSrcBody.jsp Thu Mar  1
01:44:53 2007
@@ -34,7 +34,7 @@
 
   <%-- Import component attributes, if any.
    --%>
-   
+   HELLO!!!
 
 <tiles:importAttribute/>
 
@@ -47,8 +47,8 @@
 
 <logic:present name="srcPath" >
 <bean:define id="srcPathVar" name="srcPath" type="java.lang.String"/>
-<bean:resource id="src" name="<%=srcPathVar%>" />
 <strong>file '<%=srcPathVar%>'</strong>
+<%--<bean:resource id="src" name="<%=srcPathVar%>" /> --%>
 <br>
 <pre>
 <bean:write filter="true" name="src" scope="page"/>

Modified: tiles/examples/trunk/tiles-showcase/src/main/webapp/tutorial/common/menu/menuSrc.jsp
URL: http://svn.apache.org/viewvc/tiles/examples/trunk/tiles-showcase/src/main/webapp/tutorial/common/menu/menuSrc.jsp?view=diff&rev=513243&r1=513242&r2=513243
==============================================================================
--- tiles/examples/trunk/tiles-showcase/src/main/webapp/tutorial/common/menu/menuSrc.jsp (original)
+++ tiles/examples/trunk/tiles-showcase/src/main/webapp/tutorial/common/menu/menuSrc.jsp Thu
Mar  1 01:44:53 2007
@@ -25,13 +25,13 @@
 
 <tiles:insertTemplate template="/tutorial/common/menuViewSrc.jsp" flush="true" >
   <tiles:putListAttribute name="list" >
-    <tiles:addAttribute value="/basicPage.jsp" />
-    <tiles:addAttribute value="/portalPage.jsp" />
-    <tiles:addAttribute value="/portal/portalBody.jsp" />
-    <tiles:addAttribute value="/common/header.jsp" />
-    <tiles:addAttribute value="/common/menu.jsp" />
-    <tiles:addAttribute value="/common/footer.jsp" />
-    <tiles:addAttribute value="/classicLayout.jsp" />
-    <tiles:addAttribute value="/vboxLayout.jsp" />
+    <tiles:addAttribute value="/tutorial/basicPage.jsp" />
+    <tiles:addAttribute value="/tutorial/portalPage.jsp" />
+    <tiles:addAttribute value="/tutorial/portal/portalBody.jsp" />
+    <tiles:addAttribute value="/tutorial/common/header.jsp" />
+    <tiles:addAttribute value="/tutorial/common/menu.jsp" />
+    <tiles:addAttribute value="/tutorial/common/footer.jsp" />
+    <tiles:addAttribute value="/tutorial/classicLayout.jsp" />
+    <tiles:addAttribute value="/tutorial/vboxLayout.jsp" />
   </tiles:putListAttribute>
 </tiles:insertTemplate>

Modified: tiles/examples/trunk/tiles-showcase/src/main/webapp/tutorial/common/menuViewSrc.jsp
URL: http://svn.apache.org/viewvc/tiles/examples/trunk/tiles-showcase/src/main/webapp/tutorial/common/menuViewSrc.jsp?view=diff&rev=513243&r1=513242&r2=513243
==============================================================================
--- tiles/examples/trunk/tiles-showcase/src/main/webapp/tutorial/common/menuViewSrc.jsp (original)
+++ tiles/examples/trunk/tiles-showcase/src/main/webapp/tutorial/common/menuViewSrc.jsp Thu
Mar  1 01:44:53 2007
@@ -49,7 +49,7 @@
   <td width="10" align="center"></td>
   <td  width="120">
     <font size="-2">
-      <a href="<html:rewrite page="/common/viewSrc.jsp" />?src=<html:rewrite
page="${iterateItem.value}" />"><html:rewrite page="${iterateItem.value}" /></a>
+      <a href="<html:rewrite page="/common/viewSrc.jsp" />?src=${iterateItem.value}">${iterateItem.value}</a>
     </font>
   </td>
 </tr>



Mime
View raw message