grails-controller Questions
5
Solved
I'm trying to create a Union between two tables, using HQL (Hibernate Query Language). This SQL script works fine on my SQL server:
SELECT COUNT(DISTINCT linkedin_id) as test, school_name
FROM
(SE...
Malachy asked 24/8, 2011 at 21:21
4
Solved
I'm creating a grails service that will interact with a 3rd party REST API via a Java library. The Java library requires credentials for the REST API by means of a url, username and password.
I'd ...
Hypertonic asked 11/2, 2011 at 20:51
5
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.
E.g.:
User xyz has...
Kei asked 2/6, 2010 at 9:11
4
Solved
I'm getting started with Grails (3.x) Framework but I got stuck with this error while trying to render domain content to a view:
Error 500: Internal Server Error
URI /hello/index
Class javax.servl...
Gersham asked 25/5, 2015 at 0:8
1
Solved
I know early versions of Grails used prototype scope for controllers because actions were all closures at that time.
I know that the current version documentation recommends singleton scoped contr...
Gombosi asked 16/4, 2015 at 18:4
1
I have two domain classes Question and Tag.
Question has 'hasMany relation' with Tag.
I am trying to save a question with some tags, but the error message is
"Failed to convert property value of ...
Spidery asked 19/3, 2014 at 6:7
1
I just realised that for a Grails controller there is another rendering method 'respond'.
What's the difference between respond and render method if we want to render a view in the controller.
Constipate asked 24/3, 2014 at 4:37
1
Solved
I have been trying to use a path variable in grails controller but I am not able to achieve it.
The intention behind is to validate the parameter submitted to the url which I need to make mandatory...
Camiecamila asked 2/7, 2014 at 11:33
2
Solved
I'm just starting out with grails 2.3 and I have problems getting the unit tests to run. What I've done so far is I've run
grails create-app new-app
grails create-service NewService
grails test-a...
Lunate asked 25/9, 2013 at 7:59
1
Solved
I am new to grails. And I have to work with session. I have seen the session documentation. But no idea where to put the code in my controller. I have a page for student creation names createStuden...
Thwart asked 30/6, 2013 at 5:20
5
Currently when I need to share a method like processParams(params) between different controllers, I use either inheritance or services.
Both solution has some inconvenients :
With inheritance, y...
Charlatanry asked 16/11, 2010 at 15:0
1
Is there a way to programatically list all available beans in the grails spring injection context? In guice I was able to do this by looking up the bindings configured in the injector.
Bicknell asked 16/4, 2013 at 19:19
3
Solved
Question: is there a way to do automatic command object binding with request.JSON data?
Given this simple Command object in my grails controller:
class ProfileCommand{
int id
String companyName
...
Wile asked 31/5, 2012 at 13:16
2
Solved
I am trying to create a grails 2.2.0 project using eclipse-jee-juno. It gives me an error
Groovy compiler level expected by the project does not match workspace compiler level.
Project compiler ...
Olcott asked 7/1, 2013 at 4:14
2
Solved
In spring security version 3.0.6, which fixed a CRLF logout exploit (https://jira.springsource.org/browse/SEC-1790) they disabled the use of the 'spring-security-redirect' parameter.
Default su...
Ambiversion asked 17/10, 2011 at 1:3
2
Solved
Take the following controller:
package test
class TestController {
static defaultAction = "test"
def test() {
render "test"
}
}
Why is test defined with def test() { instead of something li...
Durnan asked 12/2, 2012 at 6:0
1
Solved
Is there an easy way in Grails to not allow deleting for any Domain Class? And rather have a delete flag in each domain which gets updated whenever something is deleted.
Also, in effect all the li...
Bowerman asked 7/1, 2012 at 9:4
4
Solved
I have a Grails app with some pages only accessible over https and some over http. This is easily handled using a before filter. However when on an https page as soon as a controller does a redirec...
Yan asked 2/11, 2011 at 7:26
1
Solved
I have a grails project. Right now, the user can access it either with HTTP or HTTPS. I would like to require that they can only access it through HTTPS. any ideas? I do have spring security core i...
Estas asked 23/9, 2011 at 21:3
3
Solved
I have a Groovy/Grails website that is being used to send data to Android clients via JSON. I have created both the Android client and the Groovy/Grails website; and they can output the same object...
Fahy asked 9/9, 2011 at 15:56
1
Solved
I have two domains that are a part of a one-to-many relations ship. I was wondering how i can query the child for the parents FK? bellow is the psuedo-code for parent/child
Parent:
class AlumPro...
Impersonal asked 5/8, 2011 at 16:43
1
Solved
I implemented not usual architecture for Grails app because I made front controller which only forwards requests further (based on some criteria). I also implemented locale resolver as a http servl...
Lobe asked 13/7, 2011 at 10:41
3
Solved
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 achie...
Mascara asked 31/1, 2010 at 23:10
1
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.
def fileURL = "www.mysite.com/i...
Croup asked 13/5, 2010 at 4:52
3
Solved
Documentation says:
The Grails team discourages the
embedding of core application logic
inside controllers, as it does not
promote re-use and a clean separation
of concerns.
I have one AP...
Allyce asked 1/4, 2010 at 10:6
1 Next >
© 2022 - 2024 — McMap. All rights reserved.