grails-controller
Grails 1.3.3: controller.redirectArgs.action not populated
Does anyone knows what happened to controller.redirectArgs.action in the latest version of Grails (1.3.3)? It used to work properly but now I get NPE when I use it.[详细]
2023-01-09 00:11 分类:问答Reading out all actions in a Grails-Controller
I need to read out all available actions from any controller in my web-app. The reason for this is an authorization system where I need to give users a list of allowed actions.[详细]
2023-01-02 12:24 分类:问答rails use counts in different views
Hello i guess this is going to be pretty noob question.. But.. I have an scaffold called list, which has_many :wishes. And with that information in my model, I can in my list view use this code[详细]
2022-12-31 02:55 分类:问答Groovy Grails, How do you stream or buffer a large file in a Controller's response?
I have a controller that makes a connection to a url to retrieve a csv file. I am able to send the file in the response using the following code, this works fine.[详细]
2022-12-30 16:53 分类:问答Grails: Services VS Groovy classes
Documentation says: The Grails team discourages the embedding of core application logic inside controllers, as it does not[详细]
2022-12-25 14:26 分类:问答How to force grails to download csv files?
In my gsp view, I have this code : <g:each in=\"${fileResourceInstanceList}\" status=\"i\" var=\"fileResourceIn开发者_Python百科stance\">[详细]
2022-12-20 22:05 分类:问答How to obtain handle to Grails datasource
I want a handle to connection object in grails controller class (written in groovy). I read somewhere that I need to first obtain datasource object and call a method getConnection on it to get the con[详细]
2022-12-20 15:15 分类:问答How to extend/override controller actions of plugins?
The plugin (Nimble 0.3) I am using in my grails application, includes some controllers and associated actions. I want to change (slightly) some actions behavior, and I was wondering how I can achieve[详细]
2022-12-18 10:54 分类:问答