cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From step...@apache.org
Subject cvs commit: xml-cocoon2/src/scratchpad/webapp/samples/slide redirect4login.xsl login-failed.html login.html sitemap.xmap
Date Mon, 19 Aug 2002 14:04:28 GMT
stephan     2002/08/19 07:04:27

  Modified:    src/scratchpad/webapp/samples/slide login-failed.html
                        login.html sitemap.xmap
  Added:       src/scratchpad/webapp/samples/slide redirect4login.xsl
  Log:
  Try to redirect to the correct entrance point.
  
  Revision  Changes    Path
  1.3       +1 -0      xml-cocoon2/src/scratchpad/webapp/samples/slide/login-failed.html
  
  Index: login-failed.html
  ===================================================================
  RCS file: /home/cvs/xml-cocoon2/src/scratchpad/webapp/samples/slide/login-failed.html,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- login-failed.html	8 Jul 2002 21:20:30 -0000	1.2
  +++ login-failed.html	19 Aug 2002 14:04:27 -0000	1.3
  @@ -40,6 +40,7 @@
               <table bgcolor="#ffffff" border="0" cellspacing="0" cellpadding="2"  width="100%"
align="center">
   
                <form action="login" method="post">
  +              <input type="hidden" name="resource" value="content/"/>
                 <tr>
                  <td>Username</td>
                  <td><input name="name" type="text" size="15" maxlength="40"/></td>
  
  
  
  1.4       +1 -0      xml-cocoon2/src/scratchpad/webapp/samples/slide/login.html
  
  Index: login.html
  ===================================================================
  RCS file: /home/cvs/xml-cocoon2/src/scratchpad/webapp/samples/slide/login.html,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- login.html	8 Jul 2002 21:20:30 -0000	1.3
  +++ login.html	19 Aug 2002 14:04:27 -0000	1.4
  @@ -40,6 +40,7 @@
               <table bgcolor="#ffffff" border="0" cellspacing="0" cellpadding="2"  width="100%"
align="center">
   
                <form action="login" method="post">
  +              <input type="hidden" name="resource" value="content/"/>
                 <tr>
                  <td>Username</td>
                  <td><input name="name" type="text" size="15" maxlength="40"/></td>
  
  
  
  1.13      +9 -2      xml-cocoon2/src/scratchpad/webapp/samples/slide/sitemap.xmap
  
  Index: sitemap.xmap
  ===================================================================
  RCS file: /home/cvs/xml-cocoon2/src/scratchpad/webapp/samples/slide/sitemap.xmap,v
  retrieving revision 1.12
  retrieving revision 1.13
  diff -u -r1.12 -r1.13
  --- sitemap.xmap	19 Aug 2002 09:30:47 -0000	1.12
  +++ sitemap.xmap	19 Aug 2002 14:04:27 -0000	1.13
  @@ -126,7 +126,11 @@
   	 </map:match>
    
      <map:match pattern="login.html">
  -    <map:read src="login.html"/>
  +    <map:generate src="login.html"/>
  +    <map:transform src="redirect4login.xsl">
  +     <map:parameter name="destination" value="{request:resource}"/>
  +    </map:transform>
  +    <map:serialize/>
      </map:match>
   
      <map:match pattern="login">
  @@ -134,10 +138,13 @@
        <map:parameter name="handler" value="slidehandler"/>
        <map:parameter name="parameter_userid" value="{request:name}"/>
        <map:parameter name="parameter_password" value="{request:password}"/>
  -     <map:redirect-to uri="content/"/>
  +     <map:redirect-to uri="{request:resource}"/>
       </map:act>
   
       <map:generate src="login-failed.html"/>
  +    <map:transform src="redirect4login.xsl">
  +     <map:parameter name="destination" value="{request:resource}"/>
  +    </map:transform>
       <map:serialize/>
      </map:match>
   
  
  
  
  1.1                  xml-cocoon2/src/scratchpad/webapp/samples/slide/redirect4login.xsl
  
  Index: redirect4login.xsl
  ===================================================================
  <?xml version="1.0"?>
  <xsl:stylesheet version="1.0"
                  xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
  
  <!-- <xsl:param name="destination">content/</xsl:param>-->
  
   <xsl:param name="destination">bla</xsl:param>
  
   <xsl:template match="input[@resource]">
    <input type="hidden" name="resource" value="{$destination}"/>
   </xsl:template>
  
   <xsl:template match="@*|*|text()|processing-instruction()" priority="-1">
    <xsl:copy>
     <xsl:apply-templates select="@*|*|text()|processing-instruction()"/>
    </xsl:copy>
   </xsl:template>
  
  </xsl:stylesheet>
  
  
  

----------------------------------------------------------------------
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