You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Jürgen Haas <no...@gmx.de> on 2003/12/22 22:04:08 UTC
Need Help with SessionAttributeSelector in Sitemap
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">
<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>
--------------------------------------------------
I also tried adding
<map:parameter name="attribute-name" value="pc"/>
between map:select and map:when but it won't work neither.
There is a session attribute named "pc" with the value "yes". I checked
this.
I am running this on cocoon 2.0 with tomcat 4.1.17 on a redhat linux 7.3
computer.
I'd like to know how to properly use the SessionAttributeSelector, because i
could not find any code examples or proper tutorials for this component.
Please reply to: nospammail <at> gmx <dot> de
Thanks a lot for Your help and have a merry christmas.
Jürgen Haas
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org
Re: Need Help with SessionAttributeSelector in Sitemap
Posted by Joerg Heinicke <jo...@gmx.de>.
On 05.01.2004 00:14, Jürgen Haas wrote:
> Hi Jörg,
>
>
>>>The @type does not match the selector declaration above. Use
>>>type="session-attribute"
>>
>>Hmm, what's the difference? :)
>
>
> We cleared that misunderstanding recently. There is no difference *g*
> But still the SAS won't work. Any ideas? Are you using it?
No, i only wondered about the mail :)
Joerg
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org
Re: Need Help with SessionAttributeSelector in Sitemap
Posted by Jürgen Haas <no...@gmx.de>.
Hi Jörg,
> > The @type does not match the selector declaration above. Use
> > type="session-attribute"
>
> Hmm, what's the difference? :)
We cleared that misunderstanding recently. There is no difference *g*
But still the SAS won't work. Any ideas? Are you using it?
CU
Jürgen
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org
Re: Need Help with SessionAttributeSelector in Sitemap
Posted by Joerg Heinicke <jo...@gmx.de>.
On 22.12.2003 23:06, Christian Haul wrote:
> Jürgen Haas wrote:
>
>> 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"
Hmm, what's the difference? :)
I copied all three session-attribute in one row and they all look equal.
Joerg
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org
Re: Need Help with SessionAttributeSelector in Sitemap
Posted by Christian Haul <ha...@informatik.tu-darmstadt.de>.
Jürgen Haas wrote:
> 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: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org