You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by "sandhu@terra-firma" <sa...@apparelxml.net> on 2002/12/21 07:09:11 UTC
Reading session values - last char lost !
Hi all ,
We are using the authentication f/w for sessions and same works fine except
for wierd problem of Last char of retrieved value being cut off as below :
In one case , the foll values inserted into a <code> tag as :
<authentication>
<data>
<customers>
<code>jhn</code>
<code>btx</code>
<code>pkt</code>
</customers>
</data>
</authentication>
For retrieving these session values in an action (since we use aggregate and
<xsp-session:getxml /> does not work in aggregated pipes) we use
org.w3c.dom.node.getNodeValue() to put session values
into comma delimited string :
the problem is one value retrieved is always cut off :
jhn,bt,pkt when it should : jhn,btx,pkt
the LAST character of the SECOND VALUE IS ALWAYS LOST .
In another case of a single session value again the LAST CHARACTER is lost.
Any pointers will be greatly appreciated.
B.rgds,
Sandhu
---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faq/index.html>
To unsubscribe, e-mail: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>
Re: Reading session values - last char lost !
Posted by Antonio Gallardo <ag...@agsoftware.dnsalias.com>.
Thanks for the info. I am glad you are using the <xsp-session:getxml> tag.
Antonio
sandhu@terra-firma dijo:
> Hi Antonio,
>
> We use the <xsp-session:getxml>,tks,its great - no problem there .
>
> The prob was using org.w3c.dom.node.getNodeValue() .
> Anyway we changed to session object.
>
> Sandhu
>
> ----- Original Message -----
> From: "Antonio Gallardo" <ag...@agsoftware.dnsalias.com>
> To: <co...@xml.apache.org>
> Sent: Saturday, December 21, 2002 11:42 PM
> Subject: Re: Reading session values - last char lost !
>
>
>> Hi.
>>
>> I built the <xsp-session:getxml>. The tag does not cut any chars. Then
>> I think the problem can be in other part of the code. Maybe not your
>> code.
>>
>> Antonio Gallardo.
>>
>> sandhu@terra-firma dijo:
>> > Hi all ,
>> >
>> > We are using the authentication f/w for sessions and same works fine
>> except for wierd problem of Last char of retrieved value being cut
>> off as below :
>> >
>> > In one case , the foll values inserted into a <code> tag as :
>> >
>> > <authentication>
>> > <data>
>> > <customers>
>> > <code>jhn</code>
>> > <code>btx</code>
>> > <code>pkt</code>
>> > </customers>
>> > </data>
>> > </authentication>
>> >
>> > For retrieving these session values in an action (since we use
>> aggregate and <xsp-session:getxml /> does not work in aggregated
>> pipes) we use
>> >
>> > org.w3c.dom.node.getNodeValue() to put session values
>> > into comma delimited string :
>> >
>> > the problem is one value retrieved is always cut off :
>> >
>> > jhn,bt,pkt when it should : jhn,btx,pkt
>> >
>> > the LAST character of the SECOND VALUE IS ALWAYS LOST .
>> >
>> > In another case of a single session value again the LAST CHARACTER
>> is lost.
>> >
>> > Any pointers will be greatly appreciated.
>> >
>> > B.rgds,
>> >
>> > Sandhu
>> >
>> >
>> >
>> >
>> > ---------------------------------------------------------------------
>> Please check that your question has not already been answered in
>> the FAQ before posting.
>> <http://xml.apache.org/cocoon/faq/index.html>
>> >
>> > To unsubscribe, e-mail:
>> <co...@xml.apache.org> For additional commands,
>> e-mail: <co...@xml.apache.org>
>>
>>
>>
>>
>> ---------------------------------------------------------------------
>> Please check that your question has not already been answered in the
>> FAQ before posting. <http://xml.apache.org/cocoon/faq/index.html>
>>
>> To unsubscribe, e-mail: <co...@xml.apache.org>
>> For additional commands, e-mail: <co...@xml.apache.org>
>>
>>
>>
>
>
>
> ---------------------------------------------------------------------
> Please check that your question has not already been answered in the
> FAQ before posting. <http://xml.apache.org/cocoon/faq/index.html>
>
> To unsubscribe, e-mail: <co...@xml.apache.org>
> For additional commands, e-mail: <co...@xml.apache.org>
---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faq/index.html>
To unsubscribe, e-mail: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>
Re: Reading session values - last char lost !
Posted by "sandhu@terra-firma" <sa...@apparelxml.net>.
Hi Antonio,
We use the <xsp-session:getxml>,tks,its great - no problem there .
The prob was using org.w3c.dom.node.getNodeValue() .
Anyway we changed to session object.
Sandhu
----- Original Message -----
From: "Antonio Gallardo" <ag...@agsoftware.dnsalias.com>
To: <co...@xml.apache.org>
Sent: Saturday, December 21, 2002 11:42 PM
Subject: Re: Reading session values - last char lost !
> Hi.
>
> I built the <xsp-session:getxml>. The tag does not cut any chars. Then I
> think the problem can be in other part of the code. Maybe not your code.
>
> Antonio Gallardo.
>
> sandhu@terra-firma dijo:
> > Hi all ,
> >
> > We are using the authentication f/w for sessions and same works fine
> > except for wierd problem of Last char of retrieved value being cut off
> > as below :
> >
> > In one case , the foll values inserted into a <code> tag as :
> >
> > <authentication>
> > <data>
> > <customers>
> > <code>jhn</code>
> > <code>btx</code>
> > <code>pkt</code>
> > </customers>
> > </data>
> > </authentication>
> >
> > For retrieving these session values in an action (since we use aggregate
> > and <xsp-session:getxml /> does not work in aggregated pipes) we use
> >
> > org.w3c.dom.node.getNodeValue() to put session values
> > into comma delimited string :
> >
> > the problem is one value retrieved is always cut off :
> >
> > jhn,bt,pkt when it should : jhn,btx,pkt
> >
> > the LAST character of the SECOND VALUE IS ALWAYS LOST .
> >
> > In another case of a single session value again the LAST CHARACTER is
> > lost.
> >
> > Any pointers will be greatly appreciated.
> >
> > B.rgds,
> >
> > Sandhu
> >
> >
> >
> >
> > ---------------------------------------------------------------------
> > Please check that your question has not already been answered in the
> > FAQ before posting. <http://xml.apache.org/cocoon/faq/index.html>
> >
> > To unsubscribe, e-mail: <co...@xml.apache.org>
> > For additional commands, e-mail: <co...@xml.apache.org>
>
>
>
>
> ---------------------------------------------------------------------
> Please check that your question has not already been answered in the
> FAQ before posting. <http://xml.apache.org/cocoon/faq/index.html>
>
> To unsubscribe, e-mail: <co...@xml.apache.org>
> For additional commands, e-mail: <co...@xml.apache.org>
>
>
>
---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faq/index.html>
To unsubscribe, e-mail: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>
Re: Reading session values - last char lost !
Posted by Antonio Gallardo <ag...@agsoftware.dnsalias.com>.
Hi.
I built the <xsp-session:getxml>. The tag does not cut any chars. Then I
think the problem can be in other part of the code. Maybe not your code.
Antonio Gallardo.
sandhu@terra-firma dijo:
> Hi all ,
>
> We are using the authentication f/w for sessions and same works fine
> except for wierd problem of Last char of retrieved value being cut off
> as below :
>
> In one case , the foll values inserted into a <code> tag as :
>
> <authentication>
> <data>
> <customers>
> <code>jhn</code>
> <code>btx</code>
> <code>pkt</code>
> </customers>
> </data>
> </authentication>
>
> For retrieving these session values in an action (since we use aggregate
> and <xsp-session:getxml /> does not work in aggregated pipes) we use
>
> org.w3c.dom.node.getNodeValue() to put session values
> into comma delimited string :
>
> the problem is one value retrieved is always cut off :
>
> jhn,bt,pkt when it should : jhn,btx,pkt
>
> the LAST character of the SECOND VALUE IS ALWAYS LOST .
>
> In another case of a single session value again the LAST CHARACTER is
> lost.
>
> Any pointers will be greatly appreciated.
>
> B.rgds,
>
> Sandhu
>
>
>
>
> ---------------------------------------------------------------------
> Please check that your question has not already been answered in the
> FAQ before posting. <http://xml.apache.org/cocoon/faq/index.html>
>
> To unsubscribe, e-mail: <co...@xml.apache.org>
> For additional commands, e-mail: <co...@xml.apache.org>
---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faq/index.html>
To unsubscribe, e-mail: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>