Quantcast
Viewing all articles
Browse latest Browse all 40

Mysterious values after store params in variable ~50

Hello,

In the beginning of a controller i have the following code where i read the params for pagenation:
Code:

println "a1: "+params.offset
println "b1: "+params.max
       
int offset = params.offset ?: 0
int max = params.max ?: 2
if(max > 100) max = 100

println "a2: "+offset
println "b2: "+max

I get the following output in the consol:
Code:

a1: 2
b1: 2
a2: 50
b2: 50

Where do this 50 come from ? I had the same problem a time ago, too: http://www.spieleprogrammierer.de/20...25/#post256591 in a other controller.

It is always a number near 50. But i want the value passed from the params. What do i wrong ?

Regards
Hetzge

Viewing all articles
Browse latest Browse all 40

Trending Articles