Sonny Sukumar wrote:
Class scope vs method scope.Aha! That fixed it. I'd love to know why one can only use xsp-request elements inside the document (root element). Anyone know?
Code inside root element goes into the method, code above root element goes to class scope. Thus, NPE: request is null when you load the class.
Vadim
--- "Katzigas Dimitris" <[EMAIL PROTECTED]> wrote:
I think that your code is OK.
<xsp:logic>But i think that you have to put the whole <xsp:logic> fragment inside your
String productId = <xsp-request:get-parameter name="productid"/>;
</xsp:logic>
This code is right above my root document element
root element. I think that in order to use the <xsp-request:xxxxxx> tag it
has to be inside your root element.
I Hope that will help.
Dimitris Katzigas
--------------------------------------------------------------------- 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]>