I'm using Cocoon 2.0.3 with Tomcat 4.1.12 on Redhat 7.3.

I put in the default="" and still got the same error, which makes sense because the 
default value is only used if one is not specified in the URL.  Again, here's the URL:

http://localhost:8080/cocoon/test?productid=12345678

Sonny

--- Antonio Gallardo Rivera <[EMAIL PROTECTED]> wrote:
>What version of Cocoon are you using?
>
>I am using the lastest CVS and its works fine for me.
>
>Just see the default value:
>
><xsp:logic>
> String productId =3D <xsp-request:get-parameter name=3D"productid" default=
>=3D""/>;
>               ^^^^^
></xsp:logic>

>> Hi,
>>
>> I included the xsp-request namespace in my XSP and then put in the code:
>>
>> <xsp:logic>
>>  String productId =3D <xsp-request:get-parameter name=3D"productid"/>;
>> </xsp:logic>
>>
>> This code is right above my root document element.  I get this error when=
> I
>> try running it by going to
>> http://localhost:8080/cocoon/test?productid=3D12345678:
>>
>> org.apache.cocoon.ProcessingException: Language Exception:
>> org.apache.cocoon.components.language.LanguageException: Error while
>> instantiating org/apache/cocoon/www/products_xsp:
>> java.lang.NullPointerException
>>
>> The product with productid 12345678 exists in my backend database and the
>> code works fine when I hardcode the value into my XSP, rather than trying
>> to get it as a parameter.
>>
>> Any idea what I'm doing wrong?
>>
>> Sonny
>>


_____________________________________________________________
Conserve wilderness with a click (free!) and get your own EcologyFund.net email 
(free!) at http://www.ecologyfund.com.

_____________________________________________________________
Select your own custom email address for FREE! Get [EMAIL PROTECTED] w/No Ads, 6MB, 
POP & more! http://www.everyone.net/selectmail?campaign=tag

---------------------------------------------------------------------
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]>

Reply via email to