Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Grails forwarding and/or redirection with parameters

Is it possible to do page forwarding in Grails? I searched but no luck. If possible, how do I pass parameters in the forwarding method? If not, how would I do it using redirection? I've found something like this for redirection so far:

like image 492
echoblaze Avatar asked Nov 28 '08 19:11

echoblaze


1 Answers

Redirection is idiomatically done in a controller in Grails. See the redirect method in the Grails User Guide

An example using parameters:

redirect(action:"show",id:4, params:[author:"Stephen King"])

You might also be able to accomplish a forward equivalent through the URL Mapping mechanism, including adding one or more parameters.

like image 167
Ken Gentle Avatar answered Oct 22 '22 14:10

Ken Gentle