cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andrew Timberlake <and...@timberlake.co.za>
Subject Re: Accessing session variables in the sitemap.xmap
Date Thu, 30 Jan 2003 15:01:46 GMT
Heiko

Have you set the session to be created?

In the xsp:page declaration:

xmlns:xsp-session="http://apache.org/xsp/session/2.0"
  create-session="true"

Andrew

On Thu, 2003-01-30 at 16:33, Heiko Milke wrote:
> Hey Andrew,
> 
> > You probably want to change your pipeline as follows:
> >
> > <map:match pattern="xsp/example.xsp">
> >     <map:generate src="xsp/example.xsp" type="serverpages"/>
> >     <map:transform src="{session-attr:selected_stylesheet}"/>
> >     <map:serialize/>
> > </map:match>
> >
> > This is an input module which will retrieve the session attribute named
> > selected_stylesheet. The way you have it written is trying to access a
> > sitemap parameter named selected_stylesheet.
> > There is a little written about input modules on the cocoon wiki.
> 
> sadly this doesn't change much.
> I still get "resource not found"
> 
> Like i said i guess its a special problem with sessions that were just
> created. If i come from a different page where i already set the
> "selected_stylesheet" then it works.
> 
> The timeline looks broken. Whatever is done to the session in the generator
> doesnt come to the sitemap.
> 
> 
> Heiko
> 
> 
> ---------------------------------------------------------------------
> Please check that your question  has not already been answered in the
> FAQ before posting.     <http://xml.apache.org/cocoon/faq/index.html>
> 
> To unsubscribe, e-mail:     <cocoon-users-unsubscribe@xml.apache.org>
> For additional commands, e-mail:   <cocoon-users-help@xml.apache.org>
-- 
Andrew Timberlake <andrew@timberlake.co.za>


---------------------------------------------------------------------
Please check that your question  has not already been answered in the
FAQ before posting.     <http://xml.apache.org/cocoon/faq/index.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