You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Sébastien Koechlin <sk...@ivision.fr> on 2001/03/15 15:29:19 UTC

Re: XSP : request error

Caroline Boonen wrote:
> 
> Hello,
> 
> I'm running Cocoon with Tomcat standalone on Linux Suse 6.4
> 
> I'm trying to use request on a xsp page but I've this error when I launch it:
> 
> java.lang.Exception: XSP Java Compiler: Compilation failed for _login.java
> 42: Undefined variable or class name: request
>   login = request.getParameter("login");
>           ^
> 44: Undefined variable or class name: request
>   password = request.getParameter("password");
(...)

It's because your XSP page is not valid.

Go into your repository, and look at your _login.java file to see 
what is wrong. 

Try to guess what you need to change in your XSP page to make
java-code valid.

At this stage, XSP is just a stupid macro-processor (using XSLT).

-- 
Sébastien Koechlin - IVision - skoechlin@ivision.fr

---------------------------------------------------------------------
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: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>


Re: XSP : request error

Posted by Berin Loritsch <bl...@apache.org>.
Caroline Boonen wrote:
> 
> I've looking the _login.java and my code is valid, except for the
> declaration of request. Who can I access this variable ? Must I use
> PopulateDocument function ?

Look at the generated code in the repository.  It might shed some
light.  If this is being called from an inner class, you might be
suffering from scope issues.

> 
> On Thu, 15 Mar 2001, you wrote:
> > Caroline Boonen wrote:
> > >
> > > Hello,
> > >
> > > I'm running Cocoon with Tomcat standalone on Linux Suse 6.4
> > >
> > > I'm trying to use request on a xsp page but I've this error when I launch it:
> > >
> > > java.lang.Exception: XSP Java Compiler: Compilation failed for _login.java
> > > 42: Undefined variable or class name: request
> > >   login = request.getParameter("login");
> > >           ^
> > > 44: Undefined variable or class name: request
> > >   password = request.getParameter("password");
> > (...)
> >
> > It's because your XSP page is not valid.
> >
> > Go into your repository, and look at your _login.java file to see
> > what is wrong.
> >
> > Try to guess what you need to change in your XSP page to make
> > java-code valid.
> >
> > At this stage, XSP is just a stupid macro-processor (using XSLT).
> >
> > --
> > Sébastien Koechlin - IVision - skoechlin@ivision.fr
> >
> > ---------------------------------------------------------------------
> > 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: <co...@xml.apache.org>
> > For additional commands, e-mail: <co...@xml.apache.org>
> 
> --
> 
> Caroline BOONEN
> 
> ---------------------------------------------------------------------
> 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: <co...@xml.apache.org>
> For additional commands, e-mail: <co...@xml.apache.org>

---------------------------------------------------------------------
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: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>


Re: XSP : request error

Posted by Caroline Boonen <cb...@morren.com>.
There is my source code, thank for your help :)


On Thu, 15 Mar 2001, you wrote:
> On Thu, 15 Mar 2001 16:52:02 +0100, Caroline Boonen wrote:
> 
> >I've looking the _login.java and my code is valid, except for the
> >declaration of request. Who can I access this variable ? Must I use
> >PopulateDocument function ? 
> >
> >
> >On Thu, 15 Mar 2001, you wrote:
> >> Caroline Boonen wrote:
> >> > 
> >> > Hello,
> >> > 
> >> > I'm running Cocoon with Tomcat standalone on Linux Suse 6.4
> >> > 
> >> > I'm trying to use request on a xsp page but I've this error when I launch it:
> >> > 
> >> > java.lang.Exception: XSP Java Compiler: Compilation failed for _login.java
> >> > 42: Undefined variable or class name: request
> >> >   login = request.getParameter("login");
> >> >           ^
> >> > 44: Undefined variable or class name: request
> >> >   password = request.getParameter("password");
> >> (...)
> >> 
> >> It's because your XSP page is not valid.
> >> 
> >> Go into your repository, and look at your _login.java file to see 
> >> what is wrong. 
> >> 
> >> Try to guess what you need to change in your XSP page to make
> >> java-code valid.
> >> 
> >> At this stage, XSP is just a stupid macro-processor (using XSLT).
> >> 
> 
> It could help if you sent your sources, but this may be the reason
> you do 
> <xsp:page>
>   <xsp:logic>..</xsp:logic>
>   <page>
>   </page>
> </xsp:page>
> 
> when you wanted
> 
> <xsp:page>
>   <page>
>      <xsp:logic>..</xsp:logic>
>    ..
>    </page>
> </xsp:page>
> 
> (this should be in the faqs as this is the top-list trouble with xsp-s it happens very often)
> 
> 
> 
> best regards, Tagunov Anthony
> 
> 
> 
> ---------------------------------------------------------------------
> 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: <co...@xml.apache.org>
> For additional commands, e-mail: <co...@xml.apache.org>
-- 

Caroline BOONEN


Re: XSP : request error

Posted by Tagunov Anthony <at...@nnt.ru>.
On Thu, 15 Mar 2001 16:52:02 +0100, Caroline Boonen wrote:

>I've looking the _login.java and my code is valid, except for the
>declaration of request. Who can I access this variable ? Must I use
>PopulateDocument function ? 
>
>
>On Thu, 15 Mar 2001, you wrote:
>> Caroline Boonen wrote:
>> > 
>> > Hello,
>> > 
>> > I'm running Cocoon with Tomcat standalone on Linux Suse 6.4
>> > 
>> > I'm trying to use request on a xsp page but I've this error when I launch it:
>> > 
>> > java.lang.Exception: XSP Java Compiler: Compilation failed for _login.java
>> > 42: Undefined variable or class name: request
>> >   login = request.getParameter("login");
>> >           ^
>> > 44: Undefined variable or class name: request
>> >   password = request.getParameter("password");
>> (...)
>> 
>> It's because your XSP page is not valid.
>> 
>> Go into your repository, and look at your _login.java file to see 
>> what is wrong. 
>> 
>> Try to guess what you need to change in your XSP page to make
>> java-code valid.
>> 
>> At this stage, XSP is just a stupid macro-processor (using XSLT).
>> 

It could help if you sent your sources, but this may be the reason
you do 
<xsp:page>
  <xsp:logic>..</xsp:logic>
  <page>
  </page>
</xsp:page>

when you wanted

<xsp:page>
  <page>
     <xsp:logic>..</xsp:logic>
   ..
   </page>
</xsp:page>

(this should be in the faqs as this is the top-list trouble with xsp-s it happens very often)



best regards, Tagunov Anthony



---------------------------------------------------------------------
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: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>


Re: XSP : request error

Posted by Caroline Boonen <cb...@morren.com>.
I've looking the _login.java and my code is valid, except for the
declaration of request. Who can I access this variable ? Must I use
PopulateDocument function ? 


On Thu, 15 Mar 2001, you wrote:
> Caroline Boonen wrote:
> > 
> > Hello,
> > 
> > I'm running Cocoon with Tomcat standalone on Linux Suse 6.4
> > 
> > I'm trying to use request on a xsp page but I've this error when I launch it:
> > 
> > java.lang.Exception: XSP Java Compiler: Compilation failed for _login.java
> > 42: Undefined variable or class name: request
> >   login = request.getParameter("login");
> >           ^
> > 44: Undefined variable or class name: request
> >   password = request.getParameter("password");
> (...)
> 
> It's because your XSP page is not valid.
> 
> Go into your repository, and look at your _login.java file to see 
> what is wrong. 
> 
> Try to guess what you need to change in your XSP page to make
> java-code valid.
> 
> At this stage, XSP is just a stupid macro-processor (using XSLT).
> 
> -- 
> S�bastien Koechlin - IVision - skoechlin@ivision.fr
> 
> ---------------------------------------------------------------------
> 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: <co...@xml.apache.org>
> For additional commands, e-mail: <co...@xml.apache.org>

-- 

Caroline BOONEN


---------------------------------------------------------------------
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: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>