irobson
irobson

Reputation: 875

GSP page looks like not being interpreted by the browser

I have a grails application that after execute an action to load some datatable, I click on a link on the datatable that re-execute the same action and load the same page again - SO, when it load for the second time (after click on the link) looks like the browser didn´t process any javascript on my page - just ignore it.

The grails action is very simple, something like:

def index() {
        render (view: "page.gsp" ,model: [model])
    }

What could be happen?

UPDATE

Hi, moderators, please, close/delete this question because I found the solution and it is - basically - not related to grails but Javascript/Jquery istead. So, this question does not make sense. Thanks for you guys who tries to help me.

Upvotes: 0

Views: 88

Answers (1)

Anant Kolvankar
Anant Kolvankar

Reputation: 1050

First thing browser never get's a .gsp page it will always get an html which can be interpreted by browser. There is a syntax problem please use below code

render (view: "page" ,model: [model])

also check https://grails.github.io/grails-doc/latest/guide/theWebLayer.html#gsp

Upvotes: 1

Related Questions