tomcat-taglibs-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Néstor Boscán <>
Subject RE: Setting page size dynamically in datagrid paging...
Date Thu, 14 Apr 2005 01:12:41 GMT
Hi Siva

It looks like you're not setting the variable in a request, page, session or
application scope. Try doing:

request.setAttribute ("pageSize", new Integer (pageSize));

after defining the pageSize.


Néstor Boscán 

-----Mensaje original-----
De: Siva Yenneti [] 
Enviado el: Wednesday, April 13, 2005 3:35 PM
Asunto: Setting page size dynamically in datagrid paging...


I am tring to use a variable for *pageSize* to work in the *paging*
attribute of the datagrid but can't get it to work. I am attaching my code
for your perusal.
Could you please see where I am doing wrong in the code?

I declared a scope variable 

-- int pageSize = 2; 

which I used in 

<paging size="${pageSize}"
nextUrlVar="next" previousUrlVar="previous"

It is working if I do this way: <paging size="2"
nextUrlVar="next" previousUrlVar="previous"

My actualy intention is to let the user choose the pageSize in the form he
submits to get to this results page.

I would appreciate any help on this.


Do you Yahoo!? 
Yahoo! Small Business - Try our new resources site!

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message