Ray
Ray

Reputation: 6115

grails: what's the equivalent of php's $_POST and $_GET

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

Answers (1)

user800014
user800014

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

Related Questions