Hi Deepa,

I think you are missing some thing here. Groovy is server side scripting whereas JavaScript is client side. How can you set a parameter from JS to Groovy while to scripts are running in to different environment. May be you want to set a request parameter with the help of JS and want to collect it on the Groovy script. You have different way of passing parameters to request, part of URL query string of a get request, hidden form fields while using post.

It would be better if you explain the problem and may be someone tell you a better way of doing it.

Thanks,

Raj

Deepa Mandal wrote:
Hi Abdul,

Actually i want to set the parameter from JavaScript to groovy.


On Sat, Nov 7, 2009 at 4:57 PM, Abdullah Shaikh <
[email protected]> wrote:

If I am getting you right, you want to get the http parameter to groovy,
then groovy gives you access to request object,
request.getParameter("YOUR_PARAMETER") should work

On Sat, Nov 7, 2009 at 4:19 PM, Deepa Mandal <[email protected]
wrote:
Hi,
Can we set the value of parameter from javascript to groovy?

--
Thanks & Regards
Deepa





Reply via email to