cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Robin Green" <gree...@hotmail.com>
Subject Re: session taglib: create-session
Date Mon, 09 Oct 2000 22:11:54 GMT
Frederic Alluin <frederic.alluin@webmedia.es> wrote:
>I try to use the session taglib without example ;-( and with the
>session.xsl code and the mailinglist archive, the next code  have to
>run.....but no....

Maybe you are using versions older than 1.8, which had create-session bugs. 
If so you can upgrade to 1.8, or alternatively create the session manually 
using

<xsp:logic>
session = request.getSession (true);
</xsp:logic>

inserted as shown:

>
><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"
> >
><page>

*** INSERT HERE ***


><paragraph>
>session id is : <session:get-id><br/>
></paragraph>
>
></page>
></xsp:page>
>
>error:
>java.lang.NullPointerException
>                            at
>_D_._WebApps._columbia._htdocs._webmedia.populateDocument(_webmedia.java:313)
>
>                            at
>org.apache.cocoon.processor.xsp.XSPPage.getDocument(XSPPage.java:96)
>                            at
>org.apache.cocoon.processor.xsp.XSPProcessor.process(XSPProcessor.java:494)
>
>                            at
>org.apache.cocoon.Engine.handle(Engine.java:359)
>                            at
>org.apache.cocoon.Cocoon.service(Cocoon.java:167)
>                            at
>javax.servlet.http.HttpServlet.service(HttpServlet.java:588)
>                            at
>org.apache.jserv.JServConnection.processRequest(JServConnection.java:317)
>
>                            at
>org.apache.jserv.JServConnection.run(JServConnection.java:188)
>                            at java.lang.Thread.run(Thread.java:484)
>
>So has anybody already used the session-create attribute of <xsp:page>
>sucessfully ?
>And the session taglib in general ?
>
>Regards
>Fred
>
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org
>For additional commands, e-mail: cocoon-users-help@xml.apache.org
>

_________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.

Share information about yourself, create your own public profile at 
http://profiles.msn.com.


Mime
View raw message