I am using grails 1.3.7. I am sending username and password from my view page to controller. And it's rendering correctly on browser. But I need to write query for collect data with that username and password from database. But I have no idea how to write query in grails controller. Can anyone please help me on this ? Here is my action below where I want to write query for logging in to the home page >>>
def loginAction = {
def username = params?.username
def password = params?.password
def val = username + " --- " +password
render val
}