I am developing a web app in grails,in which on clicking of a link in email user redirected to my web page of grails. My requirement is to access http request parameters that i have passed in link in email on my gsp page.
Ex:-
I have passed link http://example.com/testpage?a=something&b=12345
and when user clicks on this link he redirect to http://example.com/testpage
and then i can get values of parameters from request.
Like a=something
and b=12345
.
Thanks in advance.
For the URL:
http://example.com/testpage?a=something&b=12345
put this in your GSP
<body>
<p>Say ${params.a}</p>
<p>count to 5, please: ${params.b}</p>
</body>
and you'll see this on your page:
Say something
count to 5, please: 12345
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