cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jeroen Reijn <j.re...@hippo.nl>
Subject Re: set a session attribute in the sitemap
Date Tue, 19 Dec 2006 18:54:59 GMT
Hi Roel,

I guess you need to define the map: namespace for the parameter.
At least that seems to work for me.

<map:act type="session-propagator">
  <paramater name="example1" value="xxx"/>
</map:act>

Kind regards,

Jeroen Reijn


Kai Mutz wrote:
> Do you have the session-propagator action defined in your sitemap?
> 
> <map:actions>
>     ...
>     <map:action logger="sitemap.action.session-propagator"
> name="session-propagator"
> src="org.apache.cocoon.acting.SessionPropagatorAction"/>
>     ...
> </map:actions>
> -----Original Message-----
> From: users-return-89747-kmuetz=web.de@cocoon.apache.org
> [mailto:users-return-89747-kmuetz=web.de@cocoon.apache.org]On Behalf Of Roel
> Croonenberghs
> Sent: Monday, December 18, 2006 5:02 PM
> To: users@cocoon.apache.org
> Subject: RE: set a session attribute in the sitemap
> 
> 
> 
> <map:match pattern="alternatetokens.ddlblist">
>                              <map:act type="session-propagator">
>                                       <paramater name="example1"
> value="xxx"/>
>                                  </map:act>
>         <map:generate type="ws_list" src="getcustomers"/>
>         <map:transform src="/customers/customers2ddlb.xsl">
>           <map:parameter name="mountpoint"
> value="{request-attr:mountpoint}"/>
>         </map:transform>
>         <map:serialize type="xml"/>
>       </map:match>
> 
> 
> 
> Kai Mutz <kmuetz@web.de>
> Sent by: kmuetz@web.de
> 18/12/2006 16:44 Please respond to
> users@cocoon.apache.org
> 
> To<users@cocoon.apache.org>
> cc
> SubjectRE: set a session attribute in the sitemap
> 
> 
> 
> 
> 
> 
> 
> Can you post the snippet around line 1126 of your sitemap.
> 
> 
> Kai
> -----Original Message-----
> From: users-return-89744-kmuetz=web.de@cocoon.apache.org
> [mailto:users-return-89744-kmuetz=web.de@cocoon.apache.org]On Behalf Of Roel
> Croonenberghs
> Sent: Monday, December 18, 2006 4:06 PM
> To: users@cocoon.apache.org
> Subject: RE: set a session attribute in the sitemap
> 
> 
> 
> I got this message
> 
> org.apache.avalon.framework.configuration.ConfigurationException: Invalid
> namespace '' at file:/C:/Sites/aldnl_151r/dynamic/sitemap.xmap:1126:35
> 
> Roel Croonenberghs
> 
> Sofico Benelux
> Technologiepark 1
> B-9052 Zwijnaarde
> www.sofico.info
> Tel +32 (0)9 210 84 40
> Fax +32 (0)9 210 80 41
> Email Roel.Croonenberghs@sofico.be
> 
> The information in this email is intended only for the addressee(s) named
> above. Access to this email by anyone else is unauthorised. If you are not
> the intended recipient of this message any disclosure, copying, distribution
> or any action taken in reliance on it is prohibited and may be unlawful.
> Email transmission cannot be guaranteed to be secure or error free as
> information could be intercepted, corrupted, lost, destroyed, arrive late or
> incomplete, or contain viruses. Sofico Services Benelux does not accept
> liability for any losses resulting from infected email transmissions. Please
> note that any views expressed in this email may be those of the originator
> and do not necessarily reflect those of this organisation.
> 
> 
> Kai Mutz <kmuetz@web.de>
> Sent by: kmuetz@web.de
> 18/12/2006 15:53 Please respond to
> users@cocoon.apache.org
> 
> To<users@cocoon.apache.org>
> cc
> SubjectRE: set a session attribute in the sitemap
> 
> 
> 
> 
> 
> 
> 
> With the SessionPropagatorAction:
> 
> http://cocoon.apache.org/2.1/apidocs/org/apache/cocoon/acting/SessionPropaga
> torAction.html
> 
> 
> Kai
> -----Original Message-----
> From: users-return-89741-kmuetz=web.de@cocoon.apache.org
> [mailto:users-return-89741-kmuetz=web.de@cocoon.apache.org]On Behalf Of Roel
> Croonenberghs
> Sent: Monday, December 18, 2006 3:44 PM
> To: users@cocoon.apache.org
> Subject: set a session attribute in the sitemap
> 
> 
> 
> Hello,
> 
> I can access a session var in the sitemap via <map:parameter name="id"
> value="{session:getAttribute(., 'curId')}" />
> But is there a possibility to set the session var in the sitemap? How?
> 
> tnx
> 
> roel
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
> For additional commands, e-mail: users-help@cocoon.apache.org
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
> For additional commands, e-mail: users-help@cocoon.apache.org
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
> For additional commands, e-mail: users-help@cocoon.apache.org
> 

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


Mime
View raw message