cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Vadim Gritsenko <vadim.gritse...@verizon.net>
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.

Vadim


>--- "Katzigas Dimitris" <dk@mylonas.gr> wrote:
>  
>
>>I think that your code is OK.
>>
>>    
>>
>>><xsp:logic>
>>> String productId = <xsp-request:get-parameter name="productid"/>;
>>></xsp:logic>
>>>
>>>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.     <http://xml.apache.org/cocoon/faq/index.html>

To unsubscribe, e-mail:     <cocoon-users-unsubscribe@xml.apache.org>
For additional commands, e-mail:   <cocoon-users-help@xml.apache.org>


Mime
View raw message