I'm pretty sure it is an XSP feature, but is possibly a documentation bug.
The feature allows you to, for example, declare instance variables or
declare instance or static methods to be used in the body of the XSP.
Wouldn't you agree?
I'm actually using it in some of my XSP pages, so please don'
THANKYOU!
That was the problem - Implicit variables are not created until the content
tag is reached, thus logic referencing them will fail if prior to the
content tag.
The code that I reference for placing the logic outside the content tag was
from a JavaWorld article. Did this used to work
Try putting a document tag around all of your content and logic.
I.e.:
=
http://apache.org/xsp";>
String keyword = request.getParameter("value");
The 'value' parameter was: keyword
==
IL 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("valu
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):
==
You do not appear to have declared `keyword'.
i.e., try:
String keyword = request.getParameter("value");
Dave
- Original Message -
From: "Eric Everman" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, October 28, 2002 3:46 PM
Subject:
Make sure you put your request inside a tag. Like this:
http://apache.org/xsp";
xmlns:esql="http://apache.org/cocoon/SQL/v2";
xmlns:xsp-request="http://apache.org/xsp/request/2.0";>
your logic
As you can see, I'm using the xsp-request logic sheet. Should be
Hi Everyone-
Here is a newbe question: I'm trying to use the implicit 'request'
variable in a xsp page, however, whenever I try to access it like this I
get a NPE error at line x:
keyword = request.getParameter("value"); //line x
When I attempt to access it like this, I get an "illegal sta