cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Arthur Allen" <>
Subject Problem with SessionAttributeSelector
Date Fri, 13 Jun 2003 20:53:38 GMT

I'm a newbie & am having problems (among other) using the session attribute 
for which neither documentation nor samples exist to my knowledge.
I'm using JVM 1.4, cocoon 2.1m2 and Tomcat 4.1.24

My declaration runs as follows:

<map:selectors default="browser">
<map:selector logger="sitemap.selector.parameter" name="session-attr" 

my code snippet runs as follows:

      <!-- activate a session if not already active -->
       <map:act type="session"/>
       <!-- determine if data set  already loaded -->
       <map:select type="session-attr">
            <map:parameter name="attribute-name" value="taxonomy.label"/>  
       <map:when test="{1}">
	<!-- save label to the session taxonomy.label attribute -->
	<map:act type="session-propagator">						      <map:parameter 
name="taxonomy.label" value="{1}"/>

The following error is reported against the line marked above with <<<< 
No attribute named "name" is associated with the configuration element 
"parameter" at file:/C:/Program Files/Apache Group/Tomcat 

I am stumped!

As a newbie with an innocent perspective, I find the proliferation of 
constructs perplexing and error inducing. Now that input modules are
available why not unify all selectors in a single formulation? For instance

            <map:parameter name="attribute-name" 
       <map:when test="{some-input-module:some-attribute}|literal|etc..">

This scheme would obsolete a half-dozen different constructs & improve 
productivity immensely IMHO.

Thanks, Arthur

MSN 8 helps eliminate e-mail viruses. Get 2 months FREE*.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message