cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From vgritse...@apache.org
Subject cvs commit: xml-cocoon2/src/webapp/docs/samples/xsp sessionpage.xsp session.xsp
Date Thu, 21 Feb 2002 03:02:09 GMT
vgritsenko    02/02/20 19:02:09

  Modified:    src/webapp/docs/samples sample-xsp.xml
               src/webapp/docs/samples/xsp session.xsp
  Added:       src/webapp/docs/samples/xsp sessionpage.xsp
  Log:
  fix session sample; add session test skeleton
  
  Revision  Changes    Path
  1.3       +5 -2      xml-cocoon2/src/webapp/docs/samples/sample-xsp.xml
  
  Index: sample-xsp.xml
  ===================================================================
  RCS file: /home/cvs/xml-cocoon2/src/webapp/docs/samples/sample-xsp.xml,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- sample-xsp.xml	11 Feb 2002 04:50:28 -0000	1.2
  +++ sample-xsp.xml	21 Feb 2002 03:02:09 -0000	1.3
  @@ -1,6 +1,6 @@
   <?xml version="1.0" encoding="iso-8859-1"?>
   
  -<!-- CVS: $Id: sample-xsp.xml,v 1.2 2002/02/11 04:50:28 vgritsenko Exp $ -->
  +<!-- CVS: $Id: sample-xsp.xml,v 1.3 2002/02/21 03:02:09 vgritsenko Exp $ -->
   
   <samples xmlns:xlink="http://www.w3.org/1999/xlink">
   
  @@ -45,7 +45,7 @@
      <sample name="ESQL" href="xsp/esql" xlink:role="dynamic">
       Simple example of the ESQL logicsheet.
      </sample>
  -   <sample name="Session XSP" href="xsp/session" xlink:role="dynamic">
  +   <sample name="Session XSP" href="xsp/sessionpage" xlink:role="dynamic">
       Sample Session XSP to illustrate session handling.
      </sample>
      <sample name="File Uploads" href="xsp/upload" xlink:role="dynamic">
  @@ -56,6 +56,9 @@
      </sample>
      <sample name="Response" href="xsp/response" xlink:role="dynamic">
       Response logicsheet tests.
  +   </sample>
  +   <sample name="Session" href="xsp/session" xlink:role="dynamic">
  +    Session logicsheet tests.
      </sample>
      <sample name="Cookie" href="xsp/cookie" xlink:role="dynamic">
       Cookies logicsheet tests.
  
  
  
  1.2       +6 -22     xml-cocoon2/src/webapp/docs/samples/xsp/session.xsp
  
  Index: session.xsp
  ===================================================================
  RCS file: /home/cvs/xml-cocoon2/src/webapp/docs/samples/xsp/session.xsp,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- session.xsp	9 Feb 2002 06:21:57 -0000	1.1
  +++ session.xsp	21 Feb 2002 03:02:09 -0000	1.2
  @@ -1,30 +1,14 @@
   <?xml version="1.0" encoding="iso-8859-1"?>
   
  -<!-- CVS: $Id: session.xsp,v 1.1 2002/02/09 06:21:57 vgritsenko Exp $ -->
  +<!-- CVS: $Id: session.xsp,v 1.2 2002/02/21 03:02:09 vgritsenko Exp $ -->
   
  -<xsp:page
  -	  language="java"
  +<xsp:page language="java"
   	  xmlns:xsp="http://apache.org/xsp"
  -	  xmlns:session="http://apache.org/xsp/session/2.0"
  -	  xmlns:xsp-request="http://apache.org/xsp/request/2.0"
  -	  >
  -  
  -  <!-- a simple session page by Jörg Prante <joerg@7val.com> -->
  +	  xmlns:xsp-session="http://apache.org/xsp/session/2.0">
     
     <page>
  -    <title>A Simple URI-based Session Example</title>
  -    <content>
  -      <para> <xsp-request:get-uri as="xml"/> </para>
  -      <para> Session ID = <session:get-id as="xml"/> </para>
  -      <para>
  -	Encode URL Test =
  -	<session:encode-url href="sessionpage.xsp">Follow me!</session:encode-url>
  -      </para>
  -           
  -      <para>Session parameter "my-param" is <session:get-attribute name="my-param"
default="not set"/></para>
  -      
  -      <!-- set my-param for future visits to page -->
  -      <session:set-attribute name="my-param"><xsp:expr>set</xsp:expr></session:set-attribute>
  -    </content>
  +
  +<h1>xsp-session logicsheet output</h1>
  +
     </page>
   </xsp:page>
  
  
  
  1.1                  xml-cocoon2/src/webapp/docs/samples/xsp/sessionpage.xsp
  
  Index: sessionpage.xsp
  ===================================================================
  <?xml version="1.0" encoding="iso-8859-1"?>
  
  <!-- CVS: $Id: sessionpage.xsp,v 1.1 2002/02/21 03:02:09 vgritsenko Exp $ -->
  
  <xsp:page language="java"
  	  xmlns:xsp="http://apache.org/xsp"
  	  xmlns:xsp-session="http://apache.org/xsp/session/2.0"
  	  xmlns:xsp-request="http://apache.org/xsp/request/2.0">
    
    <!-- a simple session page by Jörg Prante <joerg@7val.com> -->
    
    <page>
      <title>A Simple URI-based Session Example</title>
      <content>
        <para> <xsp-request:get-uri as="xml"/> </para>
        <para> Session ID = <xsp-session:get-id as="xml"/> </para>
        <para>
  	Encode URL Test =
  	<xsp-session:encode-url href="sessionpage">Follow me!</xsp-session:encode-url>
        </para>
             
        <para>Session parameter "my-param" is <xsp-session:get-attribute name="my-param"
default="not set"/></para>
        
        <!-- set my-param for future visits to page -->
        <xsp-session:set-attribute name="my-param">set</xsp-session:set-attribute>
      </content>
    </page>
  </xsp:page>
  
  
  

----------------------------------------------------------------------
In case of troubles, e-mail:     webmaster@xml.apache.org
To unsubscribe, e-mail:          cocoon-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: cocoon-cvs-help@xml.apache.org


Mime
View raw message