Quantcast

grails 1.2.2 redirect need to return false;

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

grails 1.2.2 redirect need to return false;

adwin grails
Hi,

I just upgrade my code from grails 1.1.1 to grails 1.2.2 

it seems grails 1.2.2 has problem with redirect() in controller.

before in 1.1.1 when we redirect to another page it will redirected directly without typing return false after redirecting

for example: in 1.1.1 
if(x == 0){
redirect(controller:'anotherOne'); 
}

.... do something else 

in 1.2.2 
if(x == 0){
redirect(controller:'anotherOne'); 
return false;
}

.... 


if I am not typing return false, it will process the next statement.


Is this bug ? or is this how it should be ?

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: grails 1.2.2 redirect need to return false;

adwin grails
I set this on http://jira.codehaus.org/browse/GRAILS-6106 as well ... 



On Mon, Mar 29, 2010 at 3:47 PM, adwin grails <[hidden email]> wrote:
Hi,

I just upgrade my code from grails 1.1.1 to grails 1.2.2 

it seems grails 1.2.2 has problem with redirect() in controller.

before in 1.1.1 when we redirect to another page it will redirected directly without typing return false after redirecting

for example: in 1.1.1 
if(x == 0){
redirect(controller:'anotherOne'); 
}

.... do something else 

in 1.2.2 
if(x == 0){
redirect(controller:'anotherOne'); 
return false;
}

.... 


if I am not typing return false, it will process the next statement.


Is this bug ? or is this how it should be ?


Loading...