Im new to grails and using version of 2.1.1
I have been working params for passing data from view to controller ie I have submit URL to controller :
http://example.com/save?param1=one¶m2=two¶m3=three¶m4=four
and then the URL will handle with save() in controller, I use it and I will passing some param into another view. Code like this
redirect action: "index", params:params
but when I success to redirect, all param is include (param1,param2, param3 & param4)
http://example.com/index?param1=one¶m2=two¶m3=three¶m4=four
I just want to have param1 in my index view. Currently I do this remove param using :
params.remove("param2")
params.remove("param3")
params.remove("param4")
Is there any simply way to remove multiple params in grails?