marino      2004/03/11 17:24:04

  Modified:    examples/struts/WEB-INF struts-app4-config.xml
                        tiles-app4-defs.xml
  Log:
  added a little demonstration of how to use tiles attributes with message resources.
  
  Revision  Changes    Path
  1.3       +2 -1      
jakarta-velocity-tools/examples/struts/WEB-INF/struts-app4-config.xml
  
  Index: struts-app4-config.xml
  ===================================================================
  RCS file: 
/home/cvs/jakarta-velocity-tools/examples/struts/WEB-INF/struts-app4-config.xml,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- struts-app4-config.xml    20 Feb 2004 13:13:42 -0000      1.2
  +++ struts-app4-config.xml    12 Mar 2004 01:24:04 -0000      1.3
  @@ -56,6 +56,7 @@
   
     </action-mappings>
   
  +  <message-resources parameter="examples.app4.ApplicationResources" />
     <!-- ========== PlugIn Definitions ============================== -->
   
     <plug-in className="org.apache.struts.tiles.TilesPlugin">
  
  
  
  1.3       +1 -17     
jakarta-velocity-tools/examples/struts/WEB-INF/tiles-app4-defs.xml
  
  Index: tiles-app4-defs.xml
  ===================================================================
  RCS file: 
/home/cvs/jakarta-velocity-tools/examples/struts/WEB-INF/tiles-app4-defs.xml,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- tiles-app4-defs.xml       20 Feb 2004 13:13:42 -0000      1.2
  +++ tiles-app4-defs.xml       12 Mar 2004 01:24:04 -0000      1.3
  @@ -1,27 +1,11 @@
   <?xml version="1.0" encoding="UTF-8"?>
   <!DOCTYPE tiles-definitions PUBLIC "-//Apache Software Foundation//DTD Tiles 
Configuration 1.1//EN" "http://jakarta.apache.org/struts/dtds/tiles-config_1_1.dtd";>
  -<!--
  -  Copyright 2004 The Apache Software Foundation.
  -
  -  Licensed under the Apache License, Version 2.0 (the "License");
  -  you may not use this file except in compliance with the License.
  -  You may obtain a copy of the License at
  -
  -     http://www.apache.org/licenses/LICENSE-2.0
  -
  -  Unless required by applicable law or agreed to in writing, software
  -  distributed under the License is distributed on an "AS IS" BASIS,
  -  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  -  See the License for the specific language governing permissions and
  -  limitations under the License.
  -
  -  $Id$
  --->
   <tiles-definitions>
     <definition name=".common">
       <put name="title" value="TilesTool Demo!" />
     </definition>
     <definition extends=".common" name=".frontpage" 
path="/examples/struts_app4/layout/masterLayout.vm">
  +    <put name="some.attribute">some.value</put>
       <put name="menu" value=".frontpage.menu" />
       <put name="footer" value="/examples/struts_app4/footer.vm" />
       <put name="body" value=".frontpage.body" />
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to