following are two methods for getting parameters from GSP in form of list only:- even if the variable has only one value, it will be recieved as a list and not as "String". List<String> myList = params.list('variableName') List<String> myList = [params.variableName].flatten() ~~Niraj Kumar~~ niraj@intelligrape.com ...
It is very easy and handy to use Grails <g:uploadForm> tag insteed of using HTML <form> tag or grails <g:form> tag, as you don't need to set the enctype attritbute to multipart/form-data (as in case of HTML <form> tag or grails <g:form> tag) to work with file upload. for example insteed of using: ... ...