Your xsp page requires the cocoon processing instruction:

   <?cocoon-process type="xsp"?>

I have also seen the <xsp:page> tag written:

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

I am not clear if both are acceptable.

Dave





----- Original Message -----
From: "Eric Everman" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, October 28, 2002 6:54 PM
Subject: Re: xsp request variable is not declaired


> At 10/28/2002, you wrote:
> >You do not appear to have declared `keyword'.
> >
> >i.e., try:
> >
> >  String  keyword = request.getParameter("value");
> >
> >Dave
>
>
> Ha, fair enough.  But believe it or not, this is a copy/paste error.  Here
> is the simplest xsp page that causes the problem (verbatim this time):
>
> =====================================================
> <?xml version="1.0"?>
> <xsp:page language="java" xmlns:xsp="http://apache.org/xsp";>
>
> <xsp:logic>
>    String keyword = request.getParameter("value");
> </xsp:logic>
>
> <content>
> The 'value' parameter was: <xsp:expr>keyword</xsp:expr>
> </content>
>
> </xsp:page>
> =====================================================
>
> This xsp causes a NPE:
> java.lang.NullPointerException
>          at org.apache.cocoon.www.examples.db1_xsp.(D:\Program
Files\Apache
> Group\Tomcat
>
4.1\work\Standalone\localhost\cctest\cocoon-files\org/apache/cocoon/www/exam
ples\db1_xsp.java:62)
>
> Line 62 is "String keyword = request.getParameter("value");"
>
> Sorry for the initial mis-post.  Any ideas?
>
> Eric Everman
>
>
> ---------------------------------------------------------------------
> Please check that your question  has not already been answered in the
> FAQ before posting.     <http://xml.apache.org/cocoon/faq/index.html>
>
> To unsubscribe, e-mail:     <[EMAIL PROTECTED]>
> For additional commands, e-mail:   <[EMAIL PROTECTED]>
>


---------------------------------------------------------------------
Please check that your question  has not already been answered in the
FAQ before posting.     <http://xml.apache.org/cocoon/faq/index.html>

To unsubscribe, e-mail:     <[EMAIL PROTECTED]>
For additional commands, e-mail:   <[EMAIL PROTECTED]>

Reply via email to