Questions tagged as 'groovy'

1
answer

Code in infinite loop

I have developed the following código to get the content of a certain webpage: import java.util.logging.Logger; import java.util.regex.Matcher; import java.util.regex.Pattern; Logger logger= Logger.getLogger("org.bonitasoft"); URL url...
asked by 07.11.2017 / 14:14
0
answers

Changing the Spring Security Core and Groovy Grails login form

Good afternoon, I made a change in my application to use my login form instead of the standard Spring Security Core, the redirection is occurring normally, however when clicking the button to enter nothing happens. Here is the code for my form:...
asked by 13.05.2015 / 18:12
1
answer

Problems updating record data with dataBinding in Grails

I have the following domains: class Cliente { static belongsTo = [empresa: Empresa] static constraints = { } } class Empresa { /* aqui temos alguns atributos*/ } When creating a new business class record I can do good:...
asked by 13.08.2014 / 22:58
2
answers

I do not understand what is happening with this class controller, explain? [closed]

I do not really understand, if anyone can draw for me, thank you. class DisciplinaController extends GenericController<Disciplina>{ DisciplinaController() { super(Disciplina.class) } }     
asked by 21.12.2015 / 04:08
2
answers

How can I associate 3 authors with just one book?

package crud class Start { static main(args) { Autor autor = new Autor() autor.nome = "Aline Gonzaga" autor.email ='[email protected]' autor.cpf =' 78544378654' Livro livro = new Livro(autor) livro.nome='Java: '...
asked by 26.12.2015 / 02:45
2
answers

What is the difference between instantiating in the same variable or in 3 different variables?

Follow part one: class Pessoa{ String firstName String lastName int age def address static main(args) { def p = new Pessoa() p.setFirstName("Lars") p.lastName = "Vogel" p.address = "Homestreet 3"...
asked by 17.12.2015 / 14:43
1
answer

ERROR TO MANY REDIRECTS Spring Security Core and Grails

Well, I'm developing a Grails application and I've decided to implement authorization and authentication. It's working perfectly, however. I've decided to change the login form to my form, not the Spring Security Core standard. However, I'm havin...
asked by 13.05.2015 / 17:06
1
answer

Difference between closures and functions

Closures is a function in Groovy? Is there any difference between them?     
asked by 05.03.2018 / 18:58
1
answer

Groovy - JSON List Schema

I have a problem reading a certain part of an xml file that I am transforming into a JSON file. First I get this file with class File and play it in my class XmlParser , responsible for parsing my xml file, then I play on...
asked by 07.12.2017 / 11:45
4
answers

Start grails application

So, I'm starting to use grails / groovy now, along with html / css / javascript and, as a good beginner, I'm full of doubts. I created a login html page with google plus and wanted to run the grails application to see what's happening but so...
asked by 26.11.2016 / 12:37