Search This Blog

Showing posts with label gsp. Show all posts
Showing posts with label gsp. Show all posts

Wednesday, November 19, 2014

Grails - Getting Back Entered UserName LoginController->authfail Spring Security

1. Open Config.groovy
Add
grails.plugin.springsecurity.apf.storeLastUsername=true

2. login/auth.gsp
 
${session['SPRING_SECURITY_LAST_USERNAME']}" name='j_username' id='username' />

 
 --Enjoy

Friday, August 22, 2014

How to Comment the section / paragraph / set of lines in Grails GSP ?

html



grails [ .gsp ]

<%--
         stmt 1
         stmt 2
         ---
--%>

grails [ .groovy ]

// stmt1

or

/*
stmt1
stmt2
*/
 

Grails : How to pass or get param values in g:createLinks

in view.GSP





in YourController.gsp

def displayImageOnFileName ()
    {
        print params
        String fileName = params.fileName        // or params["fileName"]
...
}

Hit Counter


View My Stats