Re: xsp request variable is not declaired

2002-10-29 Thread Ilya A. Kriveshko
Try putting a document tag around all of your content and logic. I.e.: = ?xml version=1.0? xsp:page language=java xmlns:xsp=http://apache.org/xsp; content xsp:logic String keyword = request.getParameter(value); /xsp:logic The 'value'

Re: xsp request variable is not declaired

2002-10-29 Thread Eric Everman
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

Re: xsp request variable is not declaired

2002-10-29 Thread Ilya A. Kriveshko
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

xsp request variable is not declaired

2002-10-28 Thread Eric Everman
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: xsp:logic keyword = request.getParameter(value); //line x /xsp:logic When I attempt to access it like this, I

Re: xsp request variable is not declaired

2002-10-28 Thread Bert Van Kets
Make sure you put your request inside a tag. Like this: xsp:page language=java xmlns:xsp=http://apache.org/xsp; xmlns:esql=http://apache.org/cocoon/SQL/v2; xmlns:xsp-request=http://apache.org/xsp/request/2.0; data xsp:logic your logic /xsp:logic /data /xsp:page

Re: xsp request variable is not declaired

2002-10-28 Thread Dave Biggar
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: xsp request variable is not declaired Hi

Re: xsp request variable is not declaired

2002-10-28 Thread Eric Everman
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):

Re: xsp request variable is not declaired

2002-10-28 Thread Dave Biggar
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