cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From <Maxime.Ghey...@swisscom.com>
Subject RE: get request attribute in sitemap
Date Tue, 17 Jun 2003 13:08:02 GMT
I have also a question according this. Why isn't it possible to use
multiple parameters like
...value="{request-param:name}-{request-param:surname}"/> <-Returns an
error

-----Original Message-----
From: Hill Karimov [mailto:hilloliddin@yahoo.com] 
Sent: Tuesday, June 17, 2003 1:12 PM
To: cocoon-users@xml.apache.org
Subject: Re: get request attribute in sitemap


OK thanks request-attr is works,

<map:redirect-to 
uri="account.html?account={request-attr:my_request_attribute}"/>

Thanks,
Hill

--- Upayavira <uv@upaya.co.uk> wrote:
> Do you mean request parameters? There are three
> input modules that allow access 
> to request details, request, request-param, and
> request-attr.
> 
> I've only used request param, with which you can get
> get/post parameters from the 
> request, e.g: http://server/cocoon/page?name=peter
> 
> You can use 'peter' in your sitemap like this:
> 
> <map:transform src="xsl/foo.xsl">
>   <map:parameter name="name"
> value="{request-param:name}"/>
> </map:transform>
> 
> So, Peter will be passed to the transform as a
> parameter.
> 
> Is this what you're after?
> 
> Upayavira
> 
> On 17 Jun 2003 at 3:36, Hill Karimov wrote:
> 
> > Hi all,
> > 
> > Is possible to get request attribute in sitemap?
> > some like to get request parameter:
> > 
> >     <map:match pattern="delete_account.html">
> >       <map:act set="process">
> >         <map:parameter name="descriptor"
> > value="descriptors/form_account.xml"/>
> >       </map:act>
> > 
> > <!-- ??? some like it -->
> >       <map:act type="request">
> >         <map:parameter name="attributes"
> > value="true"/>
> >         <map:redirect-to
> >
> uri="account.html?account={my_request_attribute}"/>
> >       </map:act>
> > 
> >       <!-- 
> >       <map:act type="request">
> >         <map:parameter name="parameters"
> > value="true"/>
> >         <map:redirect-to
> >
> uri="account.html?account={my_request_parameter}"/>
> >       </map:act>
> >          -->
> >     </map:match>
> > 
> > any advice, helps,
> > 
> > Thanks,
> > Hill
> > ps: i use 2.1m3-dev
> > 
> > __________________________________
> > Do you Yahoo!?
> > SBC Yahoo! DSL - Now only $29.95 per month!
> > http://sbc.yahoo.com
> > 
> >
>
---------------------------------------------------------------------
> > To unsubscribe, e-mail:
> cocoon-users-unsubscribe@xml.apache.org For
> > additional commands, e-mail:
> cocoon-users-help@xml.apache.org
> > 
> > 
> 
> 
> 
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> cocoon-users-unsubscribe@xml.apache.org
> For additional commands, e-mail:
> cocoon-users-help@xml.apache.org
> 


__________________________________
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
http://sbc.yahoo.com

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


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