You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by "Tait, Allen" <at...@IDEXX.com> on 2001/04/27 16:49:44 UTC

Undefined variable or class name: request

I am trying to use the request wrapper provide by XSP.  However, I get trhe
following message:

Undefined variable or class name: request

Here is the code:

<?xml version="1.0"?>
<?cocoon-process type="xsp"?>
<?cocoon-process type="xslt"?>
<?xml-stylesheet href="techdocs_home.xsl" type="text/xsl"?>


<xsp:page language="java" xmlns:xsp="http://www.apache.org/1999/XSP/Core">

<xsp:logic>

   String[] searchWord  = request.getParameterValue("searchword");

</xsp:logic> 

....................

</xsp:page>



---------------------------------------------------------------------
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: Undefined variable or class name: request

Posted by Donald Ball <ba...@webslingerZ.com>.
On Fri, 27 Apr 2001, Tait, Allen wrote:

> I am trying to use the request wrapper provide by XSP.  However, I get trhe
> following message:
>
> Undefined variable or class name: request
>
> Here is the code:
>
> <?xml version="1.0"?>
> <?cocoon-process type="xsp"?>
> <?cocoon-process type="xslt"?>
> <?xml-stylesheet href="techdocs_home.xsl" type="text/xsl"?>
>
>
> <xsp:page language="java" xmlns:xsp="http://www.apache.org/1999/XSP/Core">
>
> <xsp:logic>
>
>    String[] searchWord  = request.getParameterValue("searchword");
>
> </xsp:logic>
>
> ....................
>
> </xsp:page>

you need to put a root element underneath the xsp:page element and put
your xsp:logic element underneath that - otherwise it's assumed to be
class logic, not method logic.

- donald


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