cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Lars Huttar" <lars_hut...@sil.org>
Subject RE: Syntax error in session.setAttribute code?
Date Thu, 20 Nov 2003 22:49:01 GMT
Never mind, sorry... I found the problem.
I had neglected to put a <page> element around the stuff
inside the <xsp:page> element.
Not sure why that caused the error in question, but that's
probably just my ignorance of XSP.

Lars

> -----Original Message-----
> 
> Hi all,
> In Cocoon 2.1.2, I'm generating the following XSP code:
> 
> <xsp:page xmlns:xsp="http://apache.org/xsp"
>     xmlns:session="http://apache.org/xsp/session/2.0"
>     xmlns:action="http://apache.org/cocoon/action/1.0"
>     create-session="true">
>   <session:set-attribute name="userid">lars</session:set-attribute>
>   <action:set-success/>
> </xsp:page>
> 
> (That's all of it.)
> When I try to run this page (using XSPAction) I get the 
> following error:
> 
> ...
> 
>       private Redirector actionRedirector;
>       private Map actionResultMap;
> 
> // start error (lines 77-77) "Syntax error on token "(", 
> "Identifier" expected"
>       session.setAttribute(String.valueOf("userid"),
> // end error
>           "lars");
> 
>         /**
> ...


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


Mime
View raw message