--- Zeljko Rajic <[EMAIL PROTECTED]> schrieb: >
Hi Daniel,
>
> on Monday, June 25, 2001, you wrote:
>
> >> > 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.
>
>
> Shouldn't these two ways of using the
> <xsp-request:get-parameter> produce the
> same output, meaning shouldn't my way of using have
> the same result? Does my
> way of using the tag work with your Cocoon
> installation and produce the
> expected output?
Hi Zeljko,
Like written in the C2 Docu these two should have the
same effect - you are right. But I tested it on my
installation and your "version" wan't work.
I always got some error so I changed it into this:
<xsp-request:get-parameter as="String">
<name>someValue</name>
</xsp-request:get-parameter>
This wan't produce an error, but also wan't return
any parameter. :-(
I read about here:
http://xml.apache.org/cocoon2/logicsheet-request.html
take a look at that, maybe you find the correct way or
there is a bug ?!
daniel
=====
--------------------------------------------------------
Daniel Pfuhl
mailto:[EMAIL PROTECTED]
__________________________________________________________________
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: <[EMAIL PROTECTED]>
For additional commands, e-mail: <[EMAIL PROTECTED]>