cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Daniel Pfuhl <pfu...@yahoo.de>
Subject Re: Re[2]: How to use <xsp-request:get-parameter>
Date Mon, 25 Jun 2001 12:29:22 GMT

--- Zeljko Rajic <zeljko.rajic@brokat.com> schrieb: > 
> > did you specify the Namespaces and the programming
> > language in your xsp-file correctly ?
> 
> > e.g. like this:
> 
> > <xsp:page
> > language="java"
> > xmlns:xsp="http://apache.org/xsp"
> >
>
xmlns:xsp-request="http://apache.org/xsp/request/2.0"
> 
> I had set the namespace as follows:
> 'xmlns:xsp-request="http://apache.org/xsp/request'.
> I changed the namespace
> value as you suggested and the compiler error
> disappeared. Are the values/URIs
> for the namespaces anywhere documented?
> 
> Anyway, still it does not work as I would expect.
> The following XSP fragment
> produces the following output...
> 
> XSP fragment:
> 
> <p>
>    Parameter 'param1' value:
>    <xsp-request:get-parameter as="string"
> default="default Value">
>       <xsp-request:name>someValue</xsp-request:name>
>    </xsp-request:get-parameter>
> </p>
> 
> 
> output:
> 
> Parameter 'param1' value: someValue
> 
> 
> Is there still something wrong?

hmmm maybe you want to try something like this

<xsp-request:get-parameter name="someValue"
default="Not provided"/>

...in your xsp.

HTH

daniel

=====
--------------------------------------------------------
Daniel Pfuhl
mailto:daniel@dphome.de

__________________________________________________________________
Do You Yahoo!?
Gesendet von Yahoo! Mail - http://mail.yahoo.de

---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.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