cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Adriano Smith <orosm...@sify.com>
Subject Re: Url
Date Tue, 10 Aug 2004 09:35:59 GMT
For the url:
http://localhost:8888/mail/blue.wml?uid=key

The sitemap snippet is
 <map:match pattern="*blue.wml*"/>
 <map:generate type="html" src="{request-param:uid}"/>
  <map:serialize type="html"/>

However i get the error:

Could not get resource file:/data/cocoon-2.1.3/build/webapp/mail/key

How can the value of uid be read?

Quoting  DHohls@csir.co.za:

> uid is not a query string... possibly your url
> should like - 
> 
> http://mailxx.com/uid?pwd=key 
> 
> Then the value of pwd, which is key, can be
> retrieved as described by Olivier. 
> 
> >>> orosmith@sify.com 2004/08/10 07:49:57 AM >>>
> if i have a url http://mailxx.com/uid?pwd?key 
> can uid, pwd and key be accessed using 
> 
> <map:generate src="{request-param:uid}"/> ?
> 
> 
> 
> Quoting  olivier.billard.cocoon@laposte.net: 
> 
> > Adriano Smith wrote:
> > > Is it possible to retrieve parameters passed in the url (through
> query
> > 
> > > strings) using cocoon? 
> > >
> >
> <http://ads.sify.com/RealMedia/ads/click_nx.ads/mail.sify.com/sentmail@Bottom>
> > 
> > > 
> > 
> > Sure, using the "request" object.
> > For example
> > 
> > in flowscript :
> >      var requestParameter =
> > cocoon.request.getParameter("MyParameter");
> > in sitemap :
> >      <map:generate src="{request-param:MyFileParameter}"/>
> > 
> > etc...
> > You'll have more examples in the cocoon doc.
> > 
> > --
> > Olivier
> > 
> > 
> >
> ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org 
> > For additional commands, e-mail: users-help@cocoon.apache.org 
> > 
> > 
> 
> -- 
> This message has been scanned for viruses and
> dangerous content by MailScanner, and is
> believed to be clean.
> MailScanner thanks transtec Computers for their support.
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
> For additional commands, e-mail: users-help@cocoon.apache.org
> 
> 

Mime
View raw message