You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Lionel Crine <cr...@4dconcept.fr> on 2003/11/06 14:29:22 UTC
XSP session
Hello,
I'm trying to get a string from a session parameter.
My transformer put it :
this.session.setAttribute("request", query);
then I have an xsp reading it :
<xsp-session:get-attribute name=3D"request" as=3D"xml"/>
The thing is that the String is not displayed as xml but as text, i.e <=20
or > are written like that :< and >
So here is the source of the document generated by the xsp :
<?xml version=3D"1.0" encoding=3D"UTF-8"?>
<content>
<attribute><query RESULTSPACE=3D"R1" VERSION=3D"2.0">
<key NAME=3D"moduleid">
<elem>
<anystr/>
</elem>
</key>
</query>
</attribute>
</content>
Not so well.
Is there a solution to avoid that ??
Thanks
Lionel CRINE
Ingénieur Systèmes documentaires
Société : 4DConcept
22 rue Etienne de Jouy 78353 JOUY EN JOSAS
Tel : 01.34.58.70.70 Fax : 01.39.58.70.70
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org
Re: XSP session
Posted by Tony Collen <co...@umn.edu>.
Lionel Crine wrote:
> Hello,
>
> I'm trying to get a string from a session parameter.
>
> My transformer put it :
> this.session.setAttribute("request", query);
>
> then I have an xsp reading it :
> <xsp-session:get-attribute name=3D"request" as=3D"xml"/>
I believe what you need is the <xsp-session:getxml/> tag:
http://wiki.cocoondev.org/Wiki.jsp?page=XspSessionFw
regards,
Tony
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org
Re: XSP session
Posted by Lionel Crine <cr...@4dconcept.fr>.
It's not working.
At 14:44 06/11/2003 +0100, you wrote:
>Have you tried as="object" instead?
>just a guess...
>
>----- Original Message -----
>From: "Lionel Crine" <cr...@4dconcept.fr>
>To: <us...@cocoon.apache.org>
>Sent: Thursday, November 06, 2003 2:29 PM
>Subject: XSP session
>
>
>Hello,
>
>I'm trying to get a string from a session parameter.
>
>My transformer put it :
>this.session.setAttribute("request", query);
>
>then I have an xsp reading it :
><xsp-session:get-attribute name=3D"request" as=3D"xml"/>
>
>
>The thing is that the String is not displayed as xml but as text, i.e <=20
>or > are written like that :< and >
>
>So here is the source of the document generated by the xsp :
>
><?xml version=3D"1.0" encoding=3D"UTF-8"?>
><content>
> <attribute><query RESULTSPACE=3D"R1" VERSION=3D"2.0">
><key NAME=3D"moduleid">
><elem>
><anystr/>
></elem>
></key>
></query>
></attribute>
> </content>
>
>Not so well.
>
>Is there a solution to avoid that ??
>
>Thanks
>
>
>Lionel CRINE
>Ingénieur Systèmes documentaires
>Société : 4DConcept
>22 rue Etienne de Jouy 78353 JOUY EN JOSAS
>Tel : 01.34.58.70.70 Fax : 01.39.58.70.70
>
>
>---------------------------------------------------------------------
>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
Lionel CRINE
Ingénieur Systèmes documentaires
Société : 4DConcept
22 rue Etienne de Jouy 78353 JOUY EN JOSAS
Tel : 01.34.58.70.70 Fax : 01.39.58.70.70
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org
Re: XSP session
Posted by julien bloit <Ju...@ircam.fr>.
Have you tried as="object" instead?
just a guess...
----- Original Message -----
From: "Lionel Crine" <cr...@4dconcept.fr>
To: <us...@cocoon.apache.org>
Sent: Thursday, November 06, 2003 2:29 PM
Subject: XSP session
Hello,
I'm trying to get a string from a session parameter.
My transformer put it :
this.session.setAttribute("request", query);
then I have an xsp reading it :
<xsp-session:get-attribute name=3D"request" as=3D"xml"/>
The thing is that the String is not displayed as xml but as text, i.e <=20
or > are written like that :< and >
So here is the source of the document generated by the xsp :
<?xml version=3D"1.0" encoding=3D"UTF-8"?>
<content>
<attribute><query RESULTSPACE=3D"R1" VERSION=3D"2.0">
<key NAME=3D"moduleid">
<elem>
<anystr/>
</elem>
</key>
</query>
</attribute>
</content>
Not so well.
Is there a solution to avoid that ??
Thanks
Lionel CRINE
Ingénieur Systèmes documentaires
Société : 4DConcept
22 rue Etienne de Jouy 78353 JOUY EN JOSAS
Tel : 01.34.58.70.70 Fax : 01.39.58.70.70
---------------------------------------------------------------------
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