> From: Stefano Bonnin [mailto:[EMAIL PROTECTED]]
> 
> What do you mean with "no problem here"?

"no problem" means that everybody here sometime back was also new to
Cocoon, so it is no problem that you are new to Cocoon.


> There are a lot of problem instead!
> I have downloaded and installed the last 2.0.1 Cocoon distribution.
> My main problem is the following: I can't use "session" object with
Cocoon
> 2.0.1 Distribution! Is this a bug of this distribution or is another
> problem?

Ok, I repeat again, but slower:
1. Cocoon 2.0.1 has some bugs in session logicsheet.
2. These bugs were fixed *after* Cocoon 2.0.1
3. You can download Cocoon *with* these fixes if go to URL I sent you in
the previous email.

> In other words: I must download nightly distribution or I can resolve
the
> problem with my 2.0.1 distribution?

4. You always have ability to code in Java as shown in previous email
(you already do this with encodeURL - you can use logicsheet tag for
this instead of writing Java code)
5. You might want be interested in trying snapshot as well because these
bugs are fixed there.


> Thanks for all.

Welcome.

Vadim


> ----- Original Message -----
> From: "Vadim Gritsenko" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Monday, March 18, 2002 3:54 PM
> Subject: RE: xsp-session:isNew question
> 
> 
> > > From: Stefano Bonnin [mailto:[EMAIL PROTECTED]]
> > >
> > > Ok, but excuse me for this stupid questions:
> > >
> > > with my Cocoon version I can't do anything!!!!!????? (I can't
manage
> > the
> > > sessions?)
> >
> > You can always resort to plain Java: request.getSession().isNew().
> >
> >
> > > in this case, how must I download for install the "nightly Cocoon
> > snapshot"?
> >
> > From  http://xml.apache.org/cocoon/installing/index.html:
> > "You also can download one of the development snapshots from the CVS
> > snapshots directory http://cvs.apache.org/snapshots/xml-cocoon2/";
> >
> >
> > > Excuse, but I new in C2 world, and so far I have only downloaded
the
> > "basic"
> > > packages of cocoon.
> >
> > No problem here.
> >
> > > Thanks.
> > >
> > > (If this is a bug of my Cocoon2 version, please, ignore my
previous
> > message,
> > > where I repeated the same issues)
> >
> > (Yup. Latest version of session logicsheet behaves like described in
> >
http://cvs.apache.org/viewcvs.cgi/xml-cocoon2/src/documentation/xdocs/us
> > erdocs/xsp/session.xml?rev=1.5&content-type=text/vnd.viewcvs-markup)
> >
> > Vadim
> >
> > > ----- Original Message -----
> > > From: "Vadim Gritsenko" <[EMAIL PROTECTED]>
> > > To: <[EMAIL PROTECTED]>
> > > Sent: Monday, March 18, 2002 2:29 PM
> > > Subject: RE: xsp-session:isNew question
> > >
> > >
> > > > > From: Stefano Bonnin [mailto:[EMAIL PROTECTED]]
> > > > >
> > > > > 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)?
> > > >
> > > > Your Cocoon version does not have latest bug fixes. Try nightly
> > Cocoon
> > > > snapshot, it will fix the problem.
> > > >
> > > > Vadim
> > > >
> > > >
> > > > > 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]>

Reply via email to