velocity-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ed Yu" <e...@asgnet.psc.sc.edu>
Subject RE: getting query string params in template
Date Fri, 05 Jul 2002 05:05:13 GMT
I believe you can use the ParameterParser tool to do the job. I think
you have to add the loading of it in the toolbox.xml file:

  <tool>
    <key>reqParser</key>
    <class>org.apache.velocity.tools.tools.ParameterParser</class>
  </tool>

I was testing out an earlier version and it did not. Hope this helps.

> -----Original Message-----
> From:	G.L. Grobe [SMTP:gary@grobe.net]
> Sent:	Friday, July 05, 2002 12:44 AM
> To:	Velocity Users List
> Subject:	getting query string params in template
> 
> I'm sending back to the client browser a URL w/ a query string
> parameter that I'd like to capture in my template page ...
> 
> category/products.vm?select=A
> 
> So in my template page I'd like to select a #foreach loop depending
> upon the value of select.
> I saw the "Using Velocity In Servlets" section in the dev docs, but
> didn't think I was looking in the right place.
> 
> Any help much appreciated.
> 
> 
> 
> 
> 
> 

--
To unsubscribe, e-mail:   <mailto:velocity-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:velocity-user-help@jakarta.apache.org>


Mime
View raw message