cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From je...@apache.org
Subject cvs commit: cocoon-2.1/src/webapp/samples/modules index.xhtml menu.xml sitemap.xmap
Date Sun, 04 May 2003 02:07:31 GMT
jefft       2003/05/03 19:07:31

  Modified:    src/webapp/samples/modules index.xhtml menu.xml sitemap.xmap
  Log:
  Add samples for request-param, randomnumber and realpath input modules
  
  Revision  Changes    Path
  1.2       +13 -0     cocoon-2.1/src/webapp/samples/modules/index.xhtml
  
  Index: index.xhtml
  ===================================================================
  RCS file: /home/cvs/cocoon-2.1/src/webapp/samples/modules/index.xhtml,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- index.xhtml	9 Mar 2003 00:11:14 -0000	1.1
  +++ index.xhtml	4 May 2003 02:07:31 -0000	1.2
  @@ -17,6 +17,11 @@
               <td>Request object properties</td>
             </tr>
             <tr>
  +            <td><a href="requestparam">request-param</a></td>
  +            <td>Request parameters</td>
  +          </tr>
  + 
  +          <tr>
               <td><a href="defaults.xsp">defaults</a></td>
               <td>Default (static) values</td>
             </tr>
  @@ -43,6 +48,14 @@
             <tr>
               <td><a href="chain.xsp">chain</a></td>
               <td>Chained values</td>
  +          </tr>
  +          <tr>
  +            <td><a href="randomnumber.xsp">randomnumber</a></td>
  +            <td>Random number</td>
  +          </tr>
  +           <tr>
  +            <td><a href="realpath.xsp">realpath</a></td>
  +            <td>Real filesystem paths of context paths</td>
             </tr>
           </table>
         </td>
  
  
  
  1.5       +4 -2      cocoon-2.1/src/webapp/samples/modules/menu.xml
  
  Index: menu.xml
  ===================================================================
  RCS file: /home/cvs/cocoon-2.1/src/webapp/samples/modules/menu.xml,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- menu.xml	26 Mar 2003 21:21:48 -0000	1.4
  +++ menu.xml	4 May 2003 02:07:31 -0000	1.5
  @@ -13,14 +13,16 @@
    
     <menu label="Modules">
       <menu-item label="RequestModule" href="request.xsp"/>
  +    <menu-item label="RequestParameterModule" href="requestparam"/>
       <menu-item label="DateInputModule" href="date.xsp"/>
       <menu-item label="DefaultsModule" href="defaults.xsp"/>
       <menu-item label="SessionModule" href="session.xsp"/>
       <menu-item label="SessionAttributeModule" href="session-attr.xsp"/>
  -    <menu-item label="SystemPropertiesModule" href="system-property.xsp"/>
  +    <menu-item label="SystemPropertyModule" href="system-property.xsp"/>
       <menu-item label="XMLFileModule" href="xml.xsp"/>
       <menu-item label="ChainMetaModule" href="chain.xsp"/>
  -    <menu-item label="AttributeModule" />
  +    <menu-item label="RandomNumberModule" href="randomnumber.xsp"/>
  +    <menu-item label="RealPathModule" href="realpath.xsp"/>
     </menu>
   
     <menu label="Documentation">
  
  
  
  1.5       +45 -1     cocoon-2.1/src/webapp/samples/modules/sitemap.xmap
  
  Index: sitemap.xmap
  ===================================================================
  RCS file: /home/cvs/cocoon-2.1/src/webapp/samples/modules/sitemap.xmap,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- sitemap.xmap	27 Mar 2003 02:05:29 -0000	1.4
  +++ sitemap.xmap	4 May 2003 02:07:31 -0000	1.5
  @@ -85,6 +85,23 @@
           <map:serialize />
         </map:match>               
   
  +      <map:match pattern="requestparam">
  +        <map:redirect-to uri="requestparam.xsp?foo=foo+param&amp;bar=bar+param"/>
  +      </map:match>
  +      <map:match pattern="content/requestparam.xsp">
  +        <map:generate type="serverpages" src="properties.xsp">
  +          <map:parameter name="foo" value="{request-param:foo}"/>
  +          <map:parameter name="bar" value="{request-param:bar}"/>
  +        </map:generate>
  +        <map:transform src="properties2html.xsl">
  +          <map:parameter name="title" value="Request Parameter Input Module (RequestParameterModule)"/>
  +          <map:parameter name="description" value="Provides access to request
  +            parameters. Edit the URL of this page to see the request parameter
  +            values change (parts after the '?' are request parameters) ."/>
  +        </map:transform>
  +        <map:serialize />
  +      </map:match>
  +
         <map:match pattern="content/session.xsp">
           <map:generate type="serverpages" src="properties.xsp">
             <map:parameter name="attributeNames" value="{session:attributeNames}"/>
  @@ -217,6 +234,33 @@
           <map:serialize />
         </map:match>
   
  +      <map:match pattern="content/randomnumber.xsp">
  +        <map:generate type="serverpages" src="properties.xsp">
  +          <map:parameter name="x" value="{random:x}"/>
  +        </map:generate>
  +        <map:transform src="properties2html.xsl">
  +          <map:parameter name="title" value="Random number module (RandomNumberModule)"/>
  +          <map:parameter name="description" value="Returns a random number in a
  +            user-configurable range (by default 0 to 9999999999)"/>
  +        </map:transform>
  +        <map:serialize />
  +      </map:match>
  +
  +
  +      <map:match pattern="content/realpath.xsp">
  +        <map:generate type="serverpages" src="properties.xsp">
  +          <map:parameter name="/" value="{realpath:/}"/>
  +          <map:parameter name="/images" value="{realpath:/images}"/>
  +          <map:parameter name="/WEB-INF" value="{realpath:/WEB-INF}"/>
  +        </map:generate>
  +        <map:transform src="properties2html.xsl">
  +          <map:parameter name="title" value="RealPath Module (RealPathModule)"/>
  +          <map:parameter name="description" value="Returns the real path of a
  +            context-relative virtual path (if not deployed from a .war)."/>
  +        </map:transform>
  +        <map:serialize />
  +      </map:match>               
  + 
         <!-- Menu generation -->
         <map:match pattern="menu/*">
           <map:generate src="menu.xml"/>
  
  
  

Mime
View raw message