I am trying to get request parameters on freemarker page. But I can't figure out how to setup implicit variables like RequestParameters or so.
Here is a thread http://forum.springsource.org/showthread.php?t=32846 but I don't where he setup that RequestParameters object.
The only thing I found in docs (more in source code), that it is FreemarkerServlet which can place that variable. But I don't have it in my application. All configurations are done via Spring, i.e. View Resolver.
Can anybody help me?
For query string ?myparam=abc
, you can get to myparam
like that:
${RequestParameters.myparam}
Verified on Spring 3 + Freemarker 2.3.
Don't need any additional configuration for the view handler.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With