You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Tony <to...@employer.com.br> on 2001/04/17 17:24:54 UTC

XSP session object.

Hi,

Has someone an code example on how to use the XSP session object in Cocoon
1.8.2.

I haven't found this in the doc.

I made some tries, but XSP dosen't seems to create a session object
implicitely. I got a nullpointerexeption when I try to use it.


Thanks.

> -----Original Message-----
> From: paint007@mc.duke.edu [mailto:paint007@mc.duke.edu]
> Sent: terca-feira, 17 de abril de 2001 11:57
> To: cocoon-users@xml.apache.org
> Subject: Re: How define and install one user defined taglid, need urgent
> help
>
>
>
> Oscar,
>
> I'm working on some documentation on logicsheets; here is some sample code
> I've put together for that purpose.  Put these three files in one
> directory
> in your Cocoon context, then point your browser to the greeting.taglib.xml
> document.
>
> (See attached file: greeting.taglib.xml)(See attached file:
> logicsheet.greeting.xsl)(See attached file: greeting.xsl)
>
> Hope this helps.
>
> -Christopher
>
>
>
>
> Please respond to cocoon-users@xml.apache.org
>
> To:   cocoon-users@xml.apache.org
> cc:
>
> Subject:  How define and install one user defined taglid, need urgent help
>
>
>
>
>      Is there someone out there in cyberspace that can help me
>
>           Please can you mail me one dummy sample of one custome
> taglib
>           and some notes on how to install on Cocoon 1.8.2.
>
>      Best regards:
>           Osk!
>
> ---------------------------------------------------------------------
> Please check that your question has not already been answered in the
> FAQ before posting. <http://xml.apache.org/cocoon/faqs.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/faqs.html>

To unsubscribe, e-mail: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>


Re: XSP session object.

Posted by Elmar Christen <el...@elmartec.de>.
The most commen error: you forgot the create-session="true" instruction. 
Check this out:
(Simply igonre the Spaish comments in it)
<?xml version="1.0" encoding="UTF-8" ?>
<?cocoon-process type="xsp"?><!-- written by Elmar Christen 
"elmar@elmartec.de" -->
<xsp:page language="java"
   xmlns:xsp="http://www.apache.org/1999/XSP/Core"
  xmlns:session="http://www.apache.org/1999/XSP/Session"
   create-session="true"   
 >
<raiz>
<tag name="session:put-value">
<ejemplo comentario="El tag queda sustituido por un String nulo.">
<session:put-value name='browser'>contenido para el 
valor</session:put-value>
</ejemplo>
</tag>

<tag name="session:get-value">
<ejemplo comentario="Retornando una ETIQUETA"><session:get-value 
name='browser' as='node'/></ejemplo>
<ejemplo comentario="Retornando un STRING"><session:get-value 
name='browser' as='string'/></ejemplo>
</tag>


... and so on.

Frans Thamura wrote:

> I need it also.. any one can help us???
> 
> Frans
> 
> 
> --- Tony <to...@employer.com.br> wrote:
> 
>> Hi,
>> 
>> Has someone an code example on how to use the XSP
>> session object in Cocoon
>> 1.8.2.
>> 
>> I haven't found this in the doc.
>> 
>> I made some tries, but XSP dosen't seems to create a
>> session object
>> implicitely. I got a nullpointerexeption when I try
>> to use it.
>> 
>> 
>> Thanks.
>> 
>>> -----Original Message-----
>>> From: paint007@mc.duke.edu
>> 
>> [mailto:paint007@mc.duke.edu]
>> 
>>> Sent: terca-feira, 17 de abril de 2001 11:57
>>> To: cocoon-users@xml.apache.org
>>> Subject: Re: How define and install one user
>> 
>> defined taglid, need urgent
>> 
>>> help
>>> 
>>> 
>>> 
>>> Oscar,
>>> 
>>> I'm working on some documentation on logicsheets;
>> 
>> here is some sample code
>> 
>>> I've put together for that purpose.  Put these
>> 
>> three files in one
>> 
>>> directory
>>> in your Cocoon context, then point your browser to
>> 
>> the greeting.taglib.xml
>> 
>>> document.
>>> 
>>> (See attached file: greeting.taglib.xml)(See
>> 
>> attached file:
>> 
>>> logicsheet.greeting.xsl)(See attached file:
>> 
>> greeting.xsl)
>> 
>>> Hope this helps.
>>> 
>>> -Christopher
>>> 
>>> 
>>> 
>>> 
>>> Please respond to cocoon-users@xml.apache.org
>>> 
>>> To:   cocoon-users@xml.apache.org
>>> cc:
>>> 
>>> Subject:  How define and install one user defined
>> 
>> taglid, need urgent help
>> 
>>> 
>>> 
>>> 
>>>      Is there someone out there in cyberspace that
>> 
>> can help me
>> 
>>>           Please can you mail me one dummy sample
>> 
>> of one custome
>> 
>>> taglib
>>>           and some notes on how to install on
>> 
>> Cocoon 1.8.2.
>> 
>>>      Best regards:
>>>           Osk!
>>> 
>>> 
> ---------------------------------------------------------------------
> 
>>> Please check that your question has not already
>> 
>> been answered in the
>> 
>>> FAQ before posting.
>> 
>> <http://xml.apache.org/cocoon/faqs.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/faqs.html>
>> 
>> To unsubscribe, e-mail:
>> <co...@xml.apache.org>
>> For additional commands, e-mail:
>> <co...@xml.apache.org>
>> 
> 
> 
> __________________________________________________
> Do You Yahoo!?
> Yahoo! Auctions - buy the things you want at great prices
> http://auctions.yahoo.com/
> 
> ---------------------------------------------------------------------
> Please check that your question has not already been answered in the
> FAQ before posting. <http://xml.apache.org/cocoon/faqs.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/faqs.html>

To unsubscribe, e-mail: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>


Re: XSP session object.

Posted by Frans Thamura <ft...@yahoo.com>.
I need it also.. any one can help us???

Frans


--- Tony <to...@employer.com.br> wrote:
> Hi,
> 
> Has someone an code example on how to use the XSP
> session object in Cocoon
> 1.8.2.
> 
> I haven't found this in the doc.
> 
> I made some tries, but XSP dosen't seems to create a
> session object
> implicitely. I got a nullpointerexeption when I try
> to use it.
> 
> 
> Thanks.
> 
> > -----Original Message-----
> > From: paint007@mc.duke.edu
> [mailto:paint007@mc.duke.edu]
> > Sent: terca-feira, 17 de abril de 2001 11:57
> > To: cocoon-users@xml.apache.org
> > Subject: Re: How define and install one user
> defined taglid, need urgent
> > help
> >
> >
> >
> > Oscar,
> >
> > I'm working on some documentation on logicsheets;
> here is some sample code
> > I've put together for that purpose.  Put these
> three files in one
> > directory
> > in your Cocoon context, then point your browser to
> the greeting.taglib.xml
> > document.
> >
> > (See attached file: greeting.taglib.xml)(See
> attached file:
> > logicsheet.greeting.xsl)(See attached file:
> greeting.xsl)
> >
> > Hope this helps.
> >
> > -Christopher
> >
> >
> >
> >
> > Please respond to cocoon-users@xml.apache.org
> >
> > To:   cocoon-users@xml.apache.org
> > cc:
> >
> > Subject:  How define and install one user defined
> taglid, need urgent help
> >
> >
> >
> >
> >      Is there someone out there in cyberspace that
> can help me
> >
> >           Please can you mail me one dummy sample
> of one custome
> > taglib
> >           and some notes on how to install on
> Cocoon 1.8.2.
> >
> >      Best regards:
> >           Osk!
> >
> >
>
---------------------------------------------------------------------
> > Please check that your question has not already
> been answered in the
> > FAQ before posting.
> <http://xml.apache.org/cocoon/faqs.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/faqs.html>
> 
> To unsubscribe, e-mail:
> <co...@xml.apache.org>
> For additional commands, e-mail:
> <co...@xml.apache.org>
> 


__________________________________________________
Do You Yahoo!?
Yahoo! Auctions - buy the things you want at great prices
http://auctions.yahoo.com/

---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>

To unsubscribe, e-mail: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>