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/examples\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]>