Reputation: 6115
I'm dealing with an example PHP scrip that uses $_POST
and $_GET
. Can you tell me, what's the grail's equivalent of php's $_POST
and $_GET
?
Upvotes: 2
Views: 117
Reputation:
Grails store the info sent in the request in a Map
called params
.
http://grails.org/doc/latest/ref/Controllers/params.html
The type of this map is GrailsParameterMap, you can check here the methods available.
Upvotes: 3