Return-Path: Mailing-List: contact cocoon-users-help@xml.apache.org; run by ezmlm Delivered-To: mailing list cocoon-users@xml.apache.org Received: (qmail 51089 invoked from network); 1 Feb 2001 14:56:51 -0000 Received: from ns01.riedlbauer.com (HELO mail02.riedlbauer.com) (213.68.15.49) by h31.sny.collab.net with SMTP; 1 Feb 2001 14:56:51 -0000 Received: from post.riedlbauer.com (mail.riedlbauer.com [213.68.15.4]) by mail02.riedlbauer.com (Postfix) with ESMTP id BF0B43EDCC for ; Thu, 1 Feb 2001 15:56:51 +0100 (CET) Received: by RFC1918-Host with Internet Mail Service (5.5.2650.21) id ; Thu, 1 Feb 2001 15:58:06 +0100 Message-ID: From: Arno Illmann To: "'cocoon-users@xml.apache.org'" Subject: AW: Date: Thu, 1 Feb 2001 15:57:59 +0100 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2650.21) Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Spam-Rating: h31.sny.collab.net 1.6.2 0/1000/N \jsdk2\doc\apidoc and what is really good too are the java sources from = sun under \jsdk2\src\javax\servlet. I didnt find an illustrative comment to in \cocoon\processor\xsp\library\java\util.xsl or \cocoon\src\org\apache\cocoon\processor\xsp\XSPUtil.java. =20 ... dooc is cooming soon ........................ Regards, Arno -----Urspr=FCngliche Nachricht----- Von: Pier Paolo Bortone [mailto:pierpaolo.bortone@netengineering.it] Gesendet am: Donnerstag, 1. Februar 2001 11:10 An: cocoon-users@xml.apache.org Betreff: Re: Corey, thank you, it works fine, but I was not know that was = create-session=3D"true" exist. Where I can find doc about all built-in taglibs and about their = attributes? Or better, do you know where I can search about it? Very thanks? Pier Paolo. ----- Original Message -----=20 From: Corey O'Donovan=20 To: cocoon-users@xml.apache.org=20 Sent: Wednesday, January 31, 2001 10:27 PM Subject: Re: hi, Have you setup a session using create-session=3Dtrue or request.getSession(true)? for example 1) Corey ----- Original Message ----- From: Pier Paolo Bortone To: Sent: Wednesday, January 31, 2001 6:09 PM Subject: > Hi, > > I've tried to adding attribute scope=3D"session" at the taglib = util:counter in > the xsl/lib-page.xml example. > > But there is an exception: > > java.lang.NullPointerException > at > = org.apache.cocoon.processor.xsp.XSPUtil.getSessionCount(XSPUtil.java:450= ) > at > _E_._jakarta_tomcat_3_2_1._webapps._cocoon._samples._xsp._lib_page.popul= ateD > ocument(_lib_page.java:189) > at = org.apache.cocoon.processor.xsp.XSPPage.getDocument(XSPPage.java:97) > at > org.apache.cocoon.processor.xsp.XSPProcessor.process(XSPProcessor.java:5= 27) > at org.apache.cocoon.Engine.handle(Engine.java:384) > at org.apache.cocoon.Cocoon.service(Cocoon.java:183) > at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) > at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:404)= > at org.apache.tomcat.core.Handler.service(Handler.java:286) > at = org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372) > at > org.apache.tomcat.core.ContextManager.internalService(ContextManager.jav= a:79 > 7) > at = org.apache.tomcat.core.ContextManager.service(ContextManager.java:743) > at > org.apache.tomcat.service.connector.Ajp12ConnectionHandler.processConnec= tion > (Ajp12ConnectionHandler.java:166) > at > = org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416= ) > at > = org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:49= 8) > at java.lang.Thread.run(Thread.java:484) > > I try to adding at the xsp/page.xml the method: > private synchronized int sessionCount(HttpSession session) { = Integer > integer =3D (Integer) session.getValue("util.counter"); if = (integer =3D=3D > null) { integer =3D new Integer(0); } int cnt =3D integer.intValue() > + 1; session.putValue("util.counter", new Integer(cnt)); return > nt; } > and this row that call the method above: >

I've been requested for session > sessionCount(request.getSession(true)) > times.

> If I call before xsp/page.xml, after also the xsp/lib-page.xml works = fine. > > Is there bug in the logic-sheet or haven't I understood like works = the > taglibs? > > Thanks in advance. > Pier Paolo. > > > > > --------------------------------------------------------------------- > Please check that your question has not already been answered in the > FAQ before posting. > > To unsubscribe, e-mail: > For additional commands, e-mail: --------------------------------------------------------------------- Please check that your question has not already been answered in the FAQ before posting. To unsubscribe, e-mail: For additional commands, e-mail: