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
2
votes
2 answers

Grails Having issues with form submission

Rendering the params and gets all the data I submit ["address.address1":"reston1", "address":["address1":"reston1", "county":"fairfax", "zipcode":"20190", "address2":"reston2", "city":"reston"], "representative.telephone":"7702438000",…
srisris
  • 569
  • 2
  • 9
  • 28
2
votes
2 answers

How to read xml file in grails?

I am very new to grails and perhaps it would be the most simplest of questions that I am asking. I am creating a very simple application for self-learning where I created a login page. On successful login,the xml file should be read and the output…
Supriya
  • 131
  • 1
  • 8
  • 19
2
votes
2 answers

Json parsing error when GETting grails controller action with empty body

When I send a GET request with an empty body to my grails 1.3.7 controller by using the .json file extension (eg http://localhost:8080/myapp/mycontroller/myaction.json) I get a request parsing exception and it seems that grails is trying to parse my…
Sebastien
  • 3,583
  • 4
  • 43
  • 82
2
votes
3 answers

Grails portlets on liferay

I'm a Grails developer and I started development on Liferay 2 months ago. I believe that if I can use Grails on Liferay I will increase my productivity by 2. So here is my questions : - What plugins to use to develop Liferay portlets ? I used some…
Houcem Berrayana
  • 3,052
  • 22
  • 40
2
votes
0 answers

How can I display a jpeg image in GSP, encoded in base64, from a controller

I'm just starting out with grails and this is my first question on Stackoverflow. My controller returns an image…
Nick
  • 43
  • 4
2
votes
1 answer

Configuring a MySQL Database using Grail 2.4.4 (Unable to create initial connections of pool)

I'm a really beginner in Grails technology. I installed the IDE Groovy/Grails Tool Suite™ (GGTS, Grails 2.4.4) for Windows 64bits. The environment path has been correctly updated concerning the JDK and Grails. I created a new project called 'test',…
2
votes
2 answers

Call Stored Procedure in Grails (Step by step)

Can anyone tell me how to call stored procedure from Grails which is present in User-defined path.
KIRAN BYAHATTI
  • 95
  • 2
  • 10
2
votes
4 answers

Handling parameters from dynamic form for one-to-many relationships in grails

My main question here is dealing with the pramas map when having a one-to-many relationship managed within one dynamic form, as well as best practices for dealing with one-to-many when editing/updating a domain object through the dynamic form. The…
omarello
  • 2,683
  • 1
  • 23
  • 23
2
votes
2 answers

Rewriting URL for the default action in controllers

I'm having trouble rewriting URL's in Grails: I've got 2 controllers BlogController and ProjectsController each with a default def index = { } and matching view. Now when I create the following links: Blog
Jasper
  • 2,166
  • 4
  • 30
  • 50
2
votes
1 answer

How to receive Angular $http post multipart form data in Grails

How to receive angular $http post multipart form data from Grails. Here I have sent multipart form data from Angular controller to the Grails. I am new to Grails. Anyone can give me guidance to retrieve-boundary data. I don't Know exactly it's…
2
votes
0 answers

Timeout for async Actions

How do I configure the default timeout for a all async actions? Can it be done on a controller base? Right now, my code is something like: def severalSecondsLongAction() { def ctx = startAsync() ctx.timeout = 100000 ctx.start { …
Fernando
  • 2,131
  • 3
  • 27
  • 46
2
votes
1 answer

groovy.lang.MissingPropertyException

I have been trying to use dynamic scaffolding in groovy on grails to see the list of the Tasks. My domain class is as follows package projecttracker import java.util.Date; class Task { String name String description Date dueDate …
2
votes
3 answers

Grails list view not working

I am trying out tutorials from this youtube link by Mike Kelly. I completed all installations successfully. Now trying out dynamic scaffolding, but its list is not working. This is how the show page looks like when I added a new EndUser: Now when I…
N D Thokare
  • 1,703
  • 6
  • 35
  • 57
2
votes
1 answer

Grails Controller and URL Mapping Magic

Grails 3.0.1 here. I'm looking to accomplish a specific URL/controller structure. My app deploys at the root context (/), meaning locally it runs as http://localhost:8080, and non-locally as http://someserver.example.org. I want everything under…
smeeb
  • 27,777
  • 57
  • 250
  • 447
2
votes
2 answers

How to Create Controller and Views with diffrent name Grails scaffolding

How to change the grails template file to add Prefix to the name of the controller and view package. suppose i have User Domain, while using command create-scaffold-controller User should create AdminUserController.groovy and similarly create…
Ankit Tater
  • 599
  • 3
  • 9
  • 26