grails - How can I pass a string variable from a groovy class file to the controller? -


i building grails application have pulled out username mysql database in side src/groovy/userdetail.groovy class. have stored inside def user. how can pass controller display in view?

to obtain current user within controller can use springsecurityservice. documentation includes example of doing this. there can access property of userdetail.


Comments

Popular posts from this blog

How to mention the localhost in android -

php - Calling a template part from a post -

c# - String.format() DateTime With Arabic culture -