Hi Sumit Why can't you just use groovy before you get to the template like we do everywhere else? Unless there is a special reason to do otherwise we shouldn't be processing data in the templates just formatting it.
Regards Scott 2008/10/11 Sumit Pandit <[EMAIL PROTECTED]>: > Hello All, > > In my application the scenario is like : > > In FTL I have a variable (say partyId), now I need to access this variable > in groovy file. There I extract more data from partyId and use that data in > the calling FTL. > > For this I perform following steps :- > > In FTL I have partyID > > a) set partyId in request. > b) Render a screen (which contain groovy file ) > c) In groovy get the partyId from request > d) remove partyId from request > e) extract more data using partyId. > f) put data in the context > g) In ftl get data and do what i want. > > Now I have some question > > 1) Is this approach correct ? > 2) From FTL, can we call groovy directly ? > 3) I am putting the partyId in request, is it right place in this context ? > > please give some suggestion for this. > > -- > Thanks and Regards > Sumit Pandit. > HotWaxMedia, Inc > http://www.hotwaxmedia.com > >
