velocity-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "G.L. Grobe" <g...@grobe.net>
Subject Re: getting query string params in template
Date Fri, 05 Jul 2002 21:47:33 GMT
I may have missed it looking on the velocity site, but can anyone tell me
where the ParameterParser tool might be?

Or any other way to just read a simple query string parameter off the url
from a template page?

----- Original Message -----
From: "Ed Yu" <ekyu@asgnet.psc.sc.edu>
To: "Velocity Users List" <velocity-user@jakarta.apache.org>
Sent: Friday, July 05, 2002 12:05 AM
Subject: RE: getting query string params in template


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.


> 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