cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Nadia BrĂ¼nning <sli...@gmx.de>
Subject Re: lost session attribute with document()..please help
Date Sun, 30 Nov 2003 12:51:26 GMT
Hi Joerg,

hmm... i create the session after a succesfull login, this is based on the
session authentication sample.

<map:match pattern="do-login">
	  <!--  -->
	  <map:act type="form-validator">
	      <map:parameter name="descriptor"
value="context://appi/logic/params.xml"/>
	      <map:parameter name="validate" value="Username"/>
	      <!-- now try to log in -->
	      <map:act type="db-authenticator">
	          <map:parameter name="descriptor"
value="context://appi/logic/auth.xml"/>
	          <!-- now go to start area -->
	          <map:redirect-to uri="start"/>
	      </map:act>
	  </map:act>
	  <!-- something was wrong, try it again -->
	  <map:redirect-to uri="error.html"/>
	</map:match>

     <map:match pattern="start">
      	<map:act type="session-isvalid">
		<!-- von session-validator -->
		  <map:parameter name="descriptor"
value="context://appi/logic/params.xml"/>
		  <map:redirect-to uri="home/home.section"/>
		  <map:serialize type="html"/>
		</map:act>
		<map:redirect-to uri="login"/>
    </map:match>

and in the sitemap i pass the session parameter (<map:parameter
name="Username" value="{session-attr:Username}"/>) in every <map:transform>
to access them in xslt.

so when i call (http://localhost:8888/api/result.xsp) the xsp-file can
access the session-attribute... but when i include this xsp-file in xslt
(with document() ) i have the problem.






---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Mime
View raw message