Thanks, This is fixed. See: http://cvs.apache.org/viewcvs.cgi/xml-cocoon2/src/documentation/xdocs/us erdocs/xsp/request.xml?rev=1.3&content-type=text/vnd.viewcvs-markup
Regards, Vadim > -----Original Message----- > From: Roger I Martin PhD [mailto:[EMAIL PROTECTED]] > Sent: Monday, March 04, 2002 11:57 AM > To: [EMAIL PROTECTED] > Subject: Re: xsp-request problem > > Thank you! > > http://xml.apache.org/cocoon/userdocs/xsp/request.html shows name without > the xsp-request: but of course it needs to be there! Otherwise name is a > very lonely element. > > Thanks you very much! > > Roger > ----- Original Message ----- > From: "Vadim Gritsenko" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Monday, March 04, 2002 11:39 AM > Subject: RE: xsp-request problem > > > > > From: Roger I Martin PhD [mailto:[EMAIL PROTECTED]] > > > > > > Hello, I'm using cvs( March 02, 2002) and having success with: > > > > > > <xsp:logic> > > > String fruit = <xsp:expr><xsp-request:get-parameter > > > name="fruit"></xsp-request:get-parameter></xsp:expr>; > > > </xsp:logic> > > > > > > generated java code is: > > > String fruit = > > > ((XSPRequestHelper.getParameter(objectModel, "fruit", > > > null, null, null))); > > > > > > but when I try to use > > > > > > <xsp:logic> > > > String fruit = <xsp:expr><xsp-request:get-parameter > > > ><name>fruit</name></xsp-request:get-parameter></xsp:expr>; > > > </xsp:logic> > > > > Must be: > > > > String fruit = > > <xsp:expr><xsp-request:get-parameter><xsp-request:name>fruit</xsp-reques > > t:name></xsp-request:get-parameter></xsp:expr>; > > > > See also request.xsl for implementation details. > > > > Vadim > > > > > > > > generated java code is: > > > String fruit=((XSPRequestHelper.getParameter(objectModel, > > > null, null, null, null))); > > > > > > there is no effect from the child element <name> so the parameter is > > not > > > found and the fruit string becomes null (Tried using <xsp:attribute> > > to set > > > it as an attribute but got null as well). > > > I'm doing this for the purpose of placing a variable holding the name > > of the > > > parameter into the request like: > > > > > > <xsp:logic> > > > String parameterName="fruit"; > > > String fruit = <xsp:expr><xsp-request:get-parameter > > > > > ><name><xsp:expr>parameterName</xsp:expr></name></xsp-request:get-parame > > ter> > > > </xsp:expr>; > > > </xsp:logic> > > > > > > > > > Regards, > > > > > > Roger <snip/> --------------------------------------------------------------------- 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]>