Questions tagged [grails-controller]

This tag is about the controllers in Grails Open Source Framework technology.

Grails is an Open Source, full stack, web application framework for the JVM. It takes advantage of the Groovy programming language and convention over configuration to provide a productive and stream-lined development experience.

This tag is about the controllers in Grails technology.

467 questions
0
votes
2 answers

grailsApplication.controllerClasses filter in gsp

I search grailsApplication.controllerClasses filter in stackoverflow,and I follow that right answer. I write codes like that.
sjbwylbs
  • 151
  • 14
0
votes
1 answer

using grails

I have general question regarding using remoteFunction. I am using the like i am making call to controller. I want to update a textbox based on the object from controller.
0
votes
1 answer

using grails

I am using a to display list of profilenames. So profile list is type of profiles having…
Suryateja Kosaraju
  • 493
  • 1
  • 7
  • 14
0
votes
1 answer

Store a value in database generated from views

I have a variable computed in my javascript in a view in Grails. Now I wanted to save this value in the database at a corresponding place. How can I do that? For example: I have the address of the participant and through that I computed the…
mojito89
  • 21
  • 5
0
votes
3 answers

Can i call an controller action with POST-params from another controller as method?

I've a controller and some actions within. Am i able to call these actions as methods from another controller as if i would call this action with post params? I'm using the grails paypal plugin and it has an action called "buy". I don't want the…
whitenexx
  • 1,350
  • 2
  • 25
  • 53
-1
votes
3 answers

Saving a list of emails from a form-text input into Models email_list attribute (array)

My goal is to when adding a new product with the new product form, to have an input where one can add a list of emails separated by a space. The list of emails in this string field would be saved as an array of emails in the email_list array…
justlivinglife
  • 29
  • 1
  • 1
  • 6
-1
votes
1 answer

DELETE request is not changing to GET on redirect

I am sending DELETE type Ajax request to my delete method in my controller. For successful delete, I am trying to redirect to another method in same controller that reloads the list and is of GET type. Currently my delete operation is working fine…
-1
votes
1 answer

Grails CSV Plugin - Concurrency

I am using the plugin: Grails CSV Plugin in my application with Grails 2.5.3. I need to implement the concurrency functionality with for example: GPars, but I don't know how I can do it. Now, the configuration is sequential processing. Example of my…
-1
votes
1 answer

put password to a zip file in grails errors

as I can put a password on a zip file grails package zip import java.util.zip.ZipEntry import java.util.zip.ZipOutputStream class SampleZipController { def index() { } def downloadSampleZip() { …
-1
votes
2 answers

Grails request.getFile always returning null

I've been trying to submit a form that contains multiple inputs (texts and one image) but I'm unable to retrieve the image from request (Grails 3.0.4) My create.gsp looks like this:
-1
votes
1 answer

Grails 2.4.4. grails.rest.RestfulController. How to override the delete method?

How to override the delete method ? This construction does not override a method that I'm doing wrong? : def NOT_TOUCH = ['Assets', 'Dbdoc', 'Login', 'Logout'] grailsApplication.controllerClasses.each {controller -> …
igilfanov
  • 353
  • 1
  • 11
-1
votes
2 answers

ERROR context.GrailsContextLoader - Error initializing the application

I am using grails version: 2.3.7 to build my application. When I run my application, I get the error creating bean with null pointer exception (complete log as follows) | Running Grails application 2015-03-02 14:52:45,663 [localhost-startStop-1]…
Syam
  • 575
  • 2
  • 8
  • 25
-1
votes
2 answers

Grails using ajax submit a form

I'm stacking with issues related to ajax in grails, please help! In domain book, I got book name and book type, then I generated a controller and view base on that domain. Then in update action of bookController, I use jquery to pop up input book…
Kuc Ku
  • 595
  • 1
  • 6
  • 12
-1
votes
2 answers

get values of variable defined on controller without writting query in action

I have the following code in my Controller. class WorkStationAssetController { def requestList = Request.list() def list = { [requestList :requestList] } def save = { def requestInstance = new…
-2
votes
3 answers

Grails controller sending weird JSON back to browser

I have a Grails (2.3.6) app serving an HTML form with two