> From: Piroumian, Konstantin [mailto:[EMAIL PROTECTED]]
> 
> > -----Original Message-----
> > From: Je vous site [mailto:[EMAIL PROTECTED]]
> > Sent: Tuesday, March 19, 2002 11:53 AM
> > To: [EMAIL PROTECTED]
> > Subject: XSP Questions
> >
> >
> > hello,
> >
> > I try to learn about Xsp, so I read the example.
> >
> > I have this fragment
> >
> > <xsp:page language="java" xmlns:xsp="http://apache.org/xsp";>
> >     <comptes>
> >         <session>
> >             <xsp:logic>
> >
> > org.apache.cocoon.environment.http.HttpSession session =
> >
(org.apache.cocoon.environment.http.HttpSession)request.getSession();

You should use org.apache.cocoon.environment.Session here.


> >                 String s = session.getAttribute("valeur");
> >             </xsp:logic>
> >             <xsp:expr>s</xsp:expr>
> >         </session>
> >
> > An error occurs. When i erase the <xsp:logic> tag, it works.
> 
> It can't work without <xsp:logic> or it works incorrectly. What kind
of an
> error do you get?
>
> > I would like to know if the session attribute "valeur" must have
been
> > declared before or not.
> 
> It's not related to XSP or Cocoon. Attributes behave as they do
usually in
> servlets, nothing different. So, if you have no "valeur" attribute in
your
> session then you'll get 'null' string.
> 
> > I search any good xsp tutorial and a downloadable api doc of cocoon.

If you have src distribution of Cocoon, you could build API docs:

build docs

Vadim

 
> To understand XSP better see generated java source files. You'll find
them
> somewhere in working directory of your servlet container (e.g. under
> /work/localhost/cocoon/ directory in Tomcat).
> 
> --
> Konstantin Piroumian
> [EMAIL PROTECTED]
> 
> >
> > I thank you for any help
> >
> > Xavier
> >


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