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
Post a Comment