Hi, It's just a guess, but could you try the following syntax:
<xsp-session:is-new> ... something what is treated when a session is new ... </xsp-session:is-new> Best regards Roman Stefano Bonnin wrote: > ok, I tried this: > > <xsp:logic> > .... > .... > boolean isNew = <xsp-session:is-new/>; > .... > .... > </xsp:logic> > > but the following error was returned: > > Line 133, column 16: Incompatible type for declaration. Can't convert void > to boolean. > > Why? > (I can't use <xsp-session> inside <xsp:logic> (perhaps)? > > Thanks. > > ----- Original Message ----- > From: "Vadim Gritsenko" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Thursday, March 14, 2002 4:21 PM > Subject: RE: xsp-session:isNew question > > > > From: Stefano Bonnin [mailto:[EMAIL PROTECTED]] > > > > > > Hi, > > > > > > I want check if the session is new, so, I have to use > > <xsp-session:is-new> > > > tag. > > > > > > How can I use this tag? > > > > > > Can I write a code as following > > > > > > boolean isNew = <xsp-session:is-new/>; > > > > Yes. Try it. > > > > > > > or > > > > > > if (<xsp-session:is-new/>) ..... > > > > Yep. Try it also. > > > > > > > In other words, how can I use this tag? > > > > As shown above :) > > > > > > > (I ask this because I didn't see any example about it. > > > > (See > > http://cvs.apache.org/viewcvs.cgi/xml-cocoon2/src/webapp/docs/samples/xs > > p/session.xsp?rev=1.4&content-type=text/vnd.viewcvs-markup) > > > > Vadim > > > > > > > > --------------------------------------------------------------------- > > 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: <[EMAIL PROTECTED]> > > For additional commands, e-mail: <[EMAIL PROTECTED]> > > > > --- > Outgoing mail is certified Virus Free. (CopyRight FLASHH!) > Checked by AVG anti-virus system (http://www.grisoft.com). > Version: 6.0.338 / Virus Database: 189 - Release Date: 14/03/02 > > --------------------------------------------------------------------- > 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: <[EMAIL PROTECTED]> > For additional commands, e-mail: <[EMAIL PROTECTED]>
begin:vcard n:KOZLOV;Roman tel;work:+783 12 65 85 91, +783 12 62 27 76 x-mozilla-html:FALSE org:DATAVISION CIS;PDM adr:;;Gagarina Prospect 25b;Nizhny Novgorod;;;RUSSIA version:2.1 email;internet:[EMAIL PROTECTED] title:Programmer fn:Roman KOZLOV end:vcard
--------------------------------------------------------------------- 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: <[EMAIL PROTECTED]> For additional commands, e-mail: <[EMAIL PROTECTED]>