cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Vadim Gritsenko <>
Subject Re: Possible with XSPs?
Date Fri, 18 Oct 2002 13:27:23 GMT
Sonny Sukumar wrote:

>Aha! That fixed it.  I'd love to know why one can only use xsp-request elements inside
the document (root element).  Anyone know?

Class scope vs method scope.

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.


>--- "Katzigas Dimitris" <> wrote:
>>I think that your code is OK.
>>> String productId = <xsp-request:get-parameter name="productid"/>;
>>>This code is right above my root document element
>>But i think that you have to put the whole <xsp:logic> fragment inside your
>>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.     <>

To unsubscribe, e-mail:     <>
For additional commands, e-mail:   <>

View raw message