Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Record Paging  RSS feed

 
Gilbert Debattista
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Does anyone know of a good tool that can help me organize a result set into pages in my jsp pages? I am using struts & ejb's.
I have found about the Display Tag Library however it doesn't suite my needs as i want to add a checkbox to each row and unfortunately the DTL does not support input fields.

Thanks
 
Mudi Appu
Ranch Hand
Posts: 44
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If your need is to show result set as it is in your JSP you can use some reporting tool. But because of you needs to have checkbox in your page your page is going to be a form. (You are going to fetch user inputs). So you have to handle pagination by yourself. I could be wrong (sometimes). Please keep me informed if you found some easy way of doing that.
 
Gilbert Debattista
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by kanishtha Kramalekhakha:
If your need is to show result set as it is in your JSP you can use some reporting tool. But because of you needs to have checkbox in your page your page is going to be a form. (You are going to fetch user inputs). So you have to handle pagination by yourself. I could be wrong (sometimes). Please keep me informed if you found some easy way of doing that.


I have implemented the paging system myself and it isn't that hard to do. If you're using CMP entity beans with JBoss or any other J2EE container that supports OFFSET LIMIT in its queries then there's absolutely no problem. Ok, it's soooo much better to have a ready made tool for such a thing but it took me only about 2-3 days to work this out and deploy it.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!