Hello,
unfortunately I could not find what I am searching for neither by using a search engine nor by browsing cocoon faq or mail archives. Maybe You can help me.
I tried to use the SessionAttributeSelector in my sitemap as follows:
-------------------------------------------------- <!-- COMPONENTS --> <map:selectors default="browser"> <map:selector name="session-attribute" src="org.apache.cocoon.selection.SessionAttributeSelector"> <attribute-name>pc</attribute-name> </map:selector>
<!-- PIPELINES --> <map:match pattern="system"> <map:select type="session-attribute">
The @type does not match the selector declaration above. Use type="session-attribute"
<map:when test="yes">
<map:generate type="serverpages" src="system/system.xsp"/>
<map:transform src="main.xsl"/>
<map:serialize type="html"/>
</map:when>
<map:otherwise>
<map:redirect-to uri="login3"/>
</map:otherwise>
</map:select>
</map:match>
--------------------------------------------------
If you were running 2.1 I would recommend to use the SimpleSelector in conjunction with an input module, ie the session attribute input module.
Chris.
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
