im new grails , using version of 2.1.1
i have been working params passing data view controller ie have submit url controller :
http://example.com/save?param1=one¶m2=two¶m3=three¶m4=four
and url handle save() in controller, use , passing param view. code this
redirect action: "index", params:params
but when success redirect, param include (param1,param2, param3 & param4)
http://example.com/index?param1=one¶m2=two¶m3=three¶m4=four
i want have param1 in index view. remove param using :
params.remove("param2") params.remove("param3") params.remove("param4")
is there way remove multiple params in grails?
if need 1 parameter, easiest way creating new object:
redirect action: "index", params: [param1: params.param1]
Comments
Post a Comment