xml-axkit-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jw...@apache.org
Subject cvs commit: xml-axkit/demo/xsp .htaccess auth.xsp globals.xsp session.xsp
Date Fri, 15 Mar 2002 00:24:49 GMT
jwalt       02/03/14 16:24:49

  Modified:    demo/AxKit/XSP/Demo Simple.pm
               demo/xsp .htaccess auth.xsp globals.xsp session.xsp
  Log:
   - removed stray rubbish in demo/xsp/.htaccess
   - reviewed Session, Globals, Auth demos, reformatted, added stylesheet
  
  Revision  Changes    Path
  1.2       +1 -3      xml-axkit/demo/AxKit/XSP/Demo/Simple.pm
  
  Index: Simple.pm
  ===================================================================
  RCS file: /home/cvs/xml-axkit/demo/AxKit/XSP/Demo/Simple.pm,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- Simple.pm	15 Mar 2002 00:02:55 -0000	1.1
  +++ Simple.pm	15 Mar 2002 00:24:49 -0000	1.2
  @@ -1,6 +1,4 @@
  -# $Id: Simple.pm,v 1.1 2002/03/15 00:02:55 jwalt Exp $
  -# Derived from Axkit::XSP::Simple - application global variable management, part of the
  -# session plugin package
  +# $Id: Simple.pm,v 1.2 2002/03/15 00:24:49 jwalt Exp $
   package AxKit::XSP::Demo::Simple;
   
   # Always use strict. Do it. I mean it. And turn on warnings as well.
  
  
  
  1.5       +2 -2      xml-axkit/demo/xsp/.htaccess
  
  Index: .htaccess
  ===================================================================
  RCS file: /home/cvs/xml-axkit/demo/xsp/.htaccess,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- .htaccess	15 Mar 2002 00:02:55 -0000	1.4
  +++ .htaccess	15 Mar 2002 00:24:49 -0000	1.5
  @@ -16,6 +16,8 @@
   AxAddXSPTaglib AxKit::XSP::Demo::Simple
   </Files>
   
  +# Note: these require additional setup. Not sure how/if that
  +# can be handled automagically
   <Files session.xsp>
   	AxAddPlugin Apache::AxKit::Plugin::Session
   	AxAddXSPTaglib AxKit::XSP::Session
  @@ -46,5 +48,3 @@
   	AuthName AxKitSession
   	require group admin
   </Files>
  -
  -<Files auth
  
  
  
  1.2       +33 -17    xml-axkit/demo/xsp/auth.xsp
  
  Index: auth.xsp
  ===================================================================
  RCS file: /home/cvs/xml-axkit/demo/xsp/auth.xsp,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- auth.xsp	15 Mar 2002 00:02:55 -0000	1.1
  +++ auth.xsp	15 Mar 2002 00:24:49 -0000	1.2
  @@ -1,26 +1,42 @@
   <?xml version="1.0"?>
   <?xml-stylesheet href="." type="application/x-xsp"?>
  -<?xml-stylesheet href="Taglib-Demo.xsl" type="text/xsl"?>
  -<xsp:page xmlns:foo="file:///dev/null" language="Perl"
  +<xsp:page language="Perl"
   	xmlns:xsp="http://www.apache.org/1999/XSP/Core"
   	xmlns:session="http://www.apache.org/1999/XSP/Session"
   	xmlns:auth="http://www.creITve.de/2002/XSP/Auth"
    	xmlns="http://www.w3.org/1999/xhtml">
   <html>
  -<body>
  -<h1>Auth Taglib demo</h1>
  -<auth:add-access><auth:access type="group">blas</auth:access></auth:add-access>
  -<auth:set-access><auth:access type="user">fubar</auth:access></auth:set-access>
  -<auth:add-access><auth:access type="group">foos</auth:access></auth:add-access>
  -<auth:add-access><auth:access type="group">bars</auth:access></auth:add-access>
  -<auth:rem-access><auth:access type="group">bars</auth:access></auth:rem-access>
  -<dl>
  -<dt><b>Access:</b></dt><dd><auth:get-access/></dd>
  -<dt><b>Permissions of this page:</b></dt><dd><auth:get-permission
target=""/></dd>
  -<dt><b>Permissions of subresource 'view':</b></dt><dd><auth:get-permission
target="view"/></dd>
  -<dt><b>Encrypt password:</b></dt><dd><auth:encrypt-password>ficken</auth:encrypt-password></dd>
  -<dt><b>Password matches?</b></dt><dd><auth:password-matches
encrypted="$1$jsdxRBEt$IzCeNthea4KqzkzNB7sT4/" clear="ficken"/></dd>
  -</dl>
  -</body>
  +    <head>
  +        <title>Auth Taglib demo</title>
  +        <link rel="stylesheet" url="/axkit/stylesheets/style.css"/>
  +    </head>
  +    <body>
  +        <h1>Auth Taglib demo</h1>
  +
  +        <auth:add-access><auth:access type="group">blas</auth:access></auth:add-access>
  +        <auth:set-access><auth:access type="user">fubar</auth:access></auth:set-access>
  +        <auth:add-access><auth:access type="group">foos</auth:access></auth:add-access>
  +        <auth:add-access><auth:access type="group">bars</auth:access></auth:add-access>
  +        <auth:rem-access><auth:access type="group">bars</auth:access></auth:rem-access>
  +
  +        <dl>
  +            <dt><b>Access:</b></dt>
  +            <dd><auth:get-access/></dd>
  +
  +            <dt><b>Permissions of this page:</b></dt>
  +            <dd><auth:get-permission target=""/></dd>
  +
  +            <dt><b>Permissions of subresource 'view':</b></dt>
  +            <dd><auth:get-permission target="view"/></dd>
  +
  +            <dt><b>Encrypt password:</b></dt>
  +            <dd><auth:encrypt-password>ficken</auth:encrypt-password></dd>
  +
  +            <dt><b>Password matches?</b></dt>
  +            <dd><auth:password-matches encrypted="$1$jsdxRBEt$IzCeNthea4KqzkzNB7sT4/"
clear="ficken"/></dd>
  +        </dl>
  +    
  +        <p><a href="showsource.xsp?auth.xsp">View Source</a></p>
  +    </body>
   </html>
   </xsp:page>
  
  
  
  1.2       +39 -21    xml-axkit/demo/xsp/globals.xsp
  
  Index: globals.xsp
  ===================================================================
  RCS file: /home/cvs/xml-axkit/demo/xsp/globals.xsp,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- globals.xsp	15 Mar 2002 00:02:55 -0000	1.1
  +++ globals.xsp	15 Mar 2002 00:24:49 -0000	1.2
  @@ -1,29 +1,47 @@
   <?xml version="1.0"?>
  -<?xml-stylesheet href="." type="application/x-xsp"?>
  -<?xml-stylesheet href="Taglib-Demo.xsl" type="text/xsl"?>
  -<xsp:page xmlns:foo="file:///dev/null" language="Perl"
  +<?xml-stylesheet href="NULL" type="application/x-xsp"?>
  +<xsp:page language="Perl"
   	xmlns:xsp="http://www.apache.org/1999/XSP/Core"
   	xmlns:session="http://www.apache.org/1999/XSP/Session"
   	xmlns:global="http://www.creITve.de/2002/XSP/Global"
    	xmlns="http://www.w3.org/1999/xhtml">
   <html>
  -<body>
  -<h1>Globals Taglib demo</h1>
  -<global:set-attribute><global:name>Accesses</global:name><xsp:expr>
  -<global:get-attribute name="Accesses"/>+1</xsp:expr></global:set-attribute>
  -<dl>
  -<dt><b>Names:</b></dt><dd><xsp:expr>join(",",<global:get-attribute-names/>)</xsp:expr><br/><global:get-attribute-names
as="node"/></dd>
  -<dt><b>Values:</b></dt><dd><ul><xsp:logic>
  -foreach my $name (<global:get-attribute-names/>) {
  -</xsp:logic>
  -<li><b><em><xsp:expr>$name</xsp:expr></em></b>:
  -<tt><global:get-attribute as="node"><global:name><xsp:expr>$name</xsp:expr></global:name></global:get-attribute></tt></li>
  -<xsp:logic>
  -}
  -</xsp:logic>
  -</ul></dd>
  -<dt><b>Creation Time:</b></dt><dd><global:get-creation-time
as="string"/></dd>
  -</dl>
  -</body>
  +    <head>
  +        <title>Globals Taglib demo</title>
  +        <link rel="stylesheet" url="/axkit/stylesheets/style.css"/>
  +    </head>
  +    <body>
  +        <h1>Globals Taglib demo</h1>
  +        <global:set-attribute>
  +            <global:name>Accesses</global:name>
  +            <xsp:expr><global:get-attribute name="Accesses"/>+1</xsp:expr>
  +        </global:set-attribute>
  +        <dl>
  +            <dt><b>Names:</b></dt>
  +            <dd>
  +                <xsp:expr>join(",",<global:get-attribute-names/>)</xsp:expr><br/>
  +                <global:get-attribute-names as="node"/>
  +            </dd>
  +
  +            <dt><b>Values:</b></dt>
  +            <dd>
  +                <ul><xsp:logic>
  +                    foreach my $name (<global:get-attribute-names/>) {
  +                        <li>
  +                            <b><em><xsp:expr>$name</xsp:expr></em></b>:
  +                            <tt><global:get-attribute as="node">
  +                                <global:name><xsp:expr>$name</xsp:expr></global:name>
  +                            </global:get-attribute></tt>
  +                        </li>
  +                    }
  +                </xsp:logic></ul>
  +            </dd>
  +
  +            <dt><b>Creation Time:</b></dt>
  +            <dd><global:get-creation-time as="string"/></dd>
  +        </dl>
  +
  +        <p><a href="showsource.xsp?globals.xsp">View Source</a></p>
  +    </body>
   </html>
   </xsp:page>
  
  
  
  1.3       +51 -25    xml-axkit/demo/xsp/session.xsp
  
  Index: session.xsp
  ===================================================================
  RCS file: /home/cvs/xml-axkit/demo/xsp/session.xsp,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- session.xsp	15 Mar 2002 00:02:55 -0000	1.2
  +++ session.xsp	15 Mar 2002 00:24:49 -0000	1.3
  @@ -1,32 +1,58 @@
   <?xml version="1.0"?>
  -<?xml-stylesheet href="." type="application/x-xsp"?>
  -<?xml-stylesheet href="Taglib-Demo.xsl" type="text/xsl"?>
  -<xsp:page xmlns:foo="file:///dev/null" language="Perl"
  +<?xml-stylesheet href="NULL" type="application/x-xsp"?>
  +<xsp:page language="Perl"
   	xmlns:xsp="http://www.apache.org/1999/XSP/Core"
   	xmlns:session="http://www.apache.org/1999/XSP/Session"
    	xmlns="http://www.w3.org/1999/xhtml">
   <html>
  -<body>
  -<h1>Session Taglib demo</h1>
  -<session:set-attribute><session:name>Test</session:name>In fact, there
are more attributes, but they
  -are internal and not accessible through this taglib.</session:set-attribute>
  -<dl>
  -<dt><b>Session ID:</b></dt><dd><session:get-id as="node"/></dd>
  -<dt><b>Names:</b></dt><dd><xsp:expr>join(",",<session:get-attribute-names/>)</xsp:expr><br/><session:get-attribute-names
as="node"/></dd>
  -<dt><b>Values:</b></dt><dd><ul><xsp:logic>
  -foreach my $name (<session:get-attribute-names/>) {
  -</xsp:logic>
  -<li><b><em><xsp:expr>$name</xsp:expr></em></b>:
  -<tt><session:get-attribute as="node"><session:name><xsp:expr>$name</xsp:expr></session:name></session:get-attribute></tt></li>
  -<xsp:logic>
  -}
  -</xsp:logic>
  -</ul></dd>
  -<dt><b>Creation Time:</b></dt><dd><session:get-creation-time
as="string"/></dd>
  -<dt><b>Access Time:</b></dt><dd><session:get-last-accessed-time/></dd>
  -<dt><b>Inactive Interval:</b></dt><dd><session:get-max-inactive-interval/></dd>
  -<dt><b>Is new?</b></dt><dd><xsp:expr><session:is-new/>?"Yes":"No"</xsp:expr></dd>
  -</dl>
  -</body>
  +    <head>
  +        <title>Session Taglib demo</title>
  +        <link rel="stylesheet" url="/axkit/stylesheets/style.css"/>
  +    </head>
  +    <body>
  +        <h1>Session Taglib demo</h1>
  +        <session:set-attribute>
  +            <session:name>Test</session:name>
  +            In fact, there are more attributes, but they
  +            are internal and not accessible through this taglib.
  +        </session:set-attribute>
  +        <dl>
  +            <dt><b>Session ID:</b></dt>
  +            <dd><session:get-id as="node"/></dd>
  +
  +            <dt><b>Names:</b></dt>
  +            <dd>
  +                <xsp:expr>join(",",<session:get-attribute-names/>)</xsp:expr><br/>
  +                <session:get-attribute-names as="node"/>
  +            </dd>
  +
  +            <dt><b>Values:</b></dt>
  +            <dd>
  +                <ul><xsp:logic>
  +                    foreach my $name (<session:get-attribute-names/>) {
  +                        <li><b><em><xsp:expr>$name</xsp:expr></em></b>:
  +                            <tt><session:get-attribute as="node">
  +                                <session:name><xsp:expr>$name</xsp:expr></session:name>
  +                            </session:get-attribute></tt>
  +                        </li>
  +                    }
  +                </xsp:logic></ul>
  +            </dd>
  +
  +            <dt><b>Creation Time:</b></dt>
  +            <dd><session:get-creation-time as="string"/></dd>
  +
  +            <dt><b>Access Time:</b></dt>
  +            <dd><session:get-last-accessed-time/></dd>
  +
  +            <dt><b>Inactive Interval:</b></dt>
  +            <dd><session:get-max-inactive-interval/></dd>
  +
  +            <dt><b>Is new?</b></dt>
  +            <dd><xsp:expr><session:is-new/>?"Yes":"No"</xsp:expr></dd>
  +        </dl>
  +
  +        <p><a href="showsource.xsp?session.xsp">View Source</a></p>
  +    </body>
   </html>
   </xsp:page>
  
  
  

Mime
View raw message