cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From <Maxime.Ghey...@swisscom.com>
Subject RE: Session problems!!!
Date Fri, 21 Feb 2003 09:41:35 GMT
If I copy the code you have I get nothing! Just 
Guest 
But that's because of <xsp:expr>user</xsp:expr>, and when I write
<xsp-session:get-attribute name="user" as="xml"/> I don't get anything!

-----Original Message-----
From: Luca Morandini [mailto:luca.morandini1@tin.it] 
Sent: Friday, February 21, 2003 10:34 AM
To: cocoon-users@xml.apache.org
Subject: RE: Session problems!!!


> -----Original Message-----
> From: Maxime.Gheysen@swisscom.com [mailto:Maxime.Gheysen@swisscom.com]
> Sent: Friday, February 21, 2003 10:05 AM
> To: cocoon-users@xml.apache.org; lmorandini@ieee.org
> Subject: RE: Session problems!!!
> 
> 
> Both are correct. The problem is somewhere with the creation of the 
> session.
> 

Let's put it this way: this works just fine on my 2.0.3:

<?xml version="1.0" encoding="iso-8859-1" standalone="yes"?> <xsp:page
	xmlns:xsp="http://apache.org/xsp"
	xmlns:xsp-session="http://apache.org/xsp/session/2.0"
	create-session="true">

	<page>
   		<xsp-session:set-attribute name="status"/>
		<xsp:logic>
			String user="guest";
		</xsp:logic>
   		<xsp-session:set-attribute
name="user"><xsp:expr>user</xsp:expr></xsp-session:set-attribute>
   		<xsp-session:get-attribute-names as="xml"/>
		<xsp-session:get-attribute name="user" as="xml"/>
	</page>

</xsp:page>

Regards,


--------------------------------------------- 
               Luca Morandini 
               GIS Consultant 
              lmorandini@ieee.org 
http://utenti.tripod.it/lmorandini/index.html 
---------------------------------------------
 



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


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


Mime
View raw message