cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Vadim Gritsenko" <vgritse...@hns.com>
Subject RE: Need help with session:set-attribute
Date Wed, 22 Aug 2001 13:34:22 GMT
Try
<session:set-attribute name="fruit"><xsp:expr>"apple"</xsp:expr></session:set-attribute>

Vadim

> -----Original Message-----
> From: Enke Michael [mailto:Michael.Enke@wincor-nixdorf.com]
> Sent: Wednesday, August 22, 2001 9:01 AM
> To: cocoon-users@xml.apache.org
> Subject: Need help with session:set-attribute
> 
> 
> Hello again,
> I need some help with the session-logicsheet.
> I try to set an attribute in a session
> but I get always a compilation error.
> 
> Here is my xsp:
> <?xml version="1.0" encoding="UTF-8"?>
>  
> <xsp:page language="java"
>   xmlns:xsp="http://apache.org/xsp"
>   xmlns:session="http://apache.org/xsp/session/2.0"
> >
>  
> <page>
>  <session-id><session:get-id/></session-id>
>  
>  <session:set-attribute name="fruit">apple</session:set-attribute>
>  <session:invalidate/>
> </page>
> </xsp:page>
> 
> I create a session, try to set an attribute and destroy the session.
> In the generted java file I see:
> ...
>     XSPRequestHelper.setSessionAttribute(objectModel,
>                                          String.valueOf("fruit"),
>                                          this.characters("apple");
>                                         )
> ...
> 
> For shure the semicolon must move behind the last right parenthesis.
> As I saw, the session.xsl didn't change since May so this must be my
> fault.
> But where???
> 
> Regards,
> Michael
> 
> ---------------------------------------------------------------------
> Please check that your question has not already been answered in the
> FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>
> 
> To unsubscribe, e-mail: <cocoon-users-unsubscribe@xml.apache.org>
> For additional commands, e-mail: <cocoon-users-help@xml.apache.org>
> 
> 

---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>

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