I'm new to Grails , i'm using Grails version 2.3.4 , in my application i have 2 controllers
AppUser
and
ManageLicences
, in the AppUsers there is a method named auth and below its code :
def auth()
{
if (!params.username.empty)
{
redirect (controller: "manageLicences" , action:"checkLicense")
}
}
In the checkLicense in the ManageLicense controller i'm doing some redirects depending on some conditions
def checkLicense {
if (someCondition) {
redirect (controller:'manageLicences' , action:'list')
}
else {
redirect (controller:'appUsers' , action:'login' )
}
}
, the problem is that when my application reaches
redirect (controller: "manageLicences" , action:"checkLicense")
in the AppUsers controller , rather going to the redirect that in checkLicense , the URL in the browser will be
http://localhost:8080/MyApplication/manageLicences/checkLicense
and blank page , any advice ?