Hello Raj Sir, Following is my problem: I have a drop down in a form and upon selecting a value from this drop down I have to send contactMechId of that particular value to the included ftl in the form and *without submitting the form*. If I set the contactMechId in groovy or in request then I can get this in the included ftl, please suggest other way through which I can get the contactMechId in groovy or in request.
-- Thanks & Regards Deepa On Sat, Nov 7, 2009 at 6:49 PM, Raj Saini <[email protected]> wrote: > 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 >>>> >>>> >>>> >>> >> >> >> >> > >
