Solved

Need example for Pagination using struts 2 and MYSql DB

Posted on 2009-05-15
4
2,928 Views
Last Modified: 2013-11-29
Like to know concept of pagination  and suitable design pattern to implement it with sample app explaining the same in struts 2 and mysql
0
Comment
Question by:tdbalki
  • 2
  • 2
4 Comments
 
LVL 13

Expert Comment

by:Murali Murugesan
ID: 24393139
Use display tag library, http://displaytag.sourceforge.net/1.2/

or

 follow this post as mentioned by rrz@871311

http://www.experts-exchange.com/Programming/Languages/Java/J2EE/JSP/Q_24321162.html

-Murali*
0
 

Author Comment

by:tdbalki
ID: 24394000
Hi Murali,

Thanks,

Like to implement separting business logic and presentation logic.  

Expected :
Consider : db returns 100 records for a sql query.  Planned to display 10 records per page

Expected flow:
-I/P to action class =current page no and expected page
-action class ->invokes help class, process and returns result based on current page no and expected page.
-result will be rendered in jsp page

Looking for suritable design structure.

-tdbalki
0
 
LVL 13

Accepted Solution

by:
Murali Murugesan earned 20 total points
ID: 24395577
i would suggest go for display tag it suits your requirement , its very easy to implement and it allows sorting of table columns along with paging.

-Murali*
0
 

Author Closing Comment

by:tdbalki
ID: 31581826
Looking for alternate approach
0

Featured Post

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

QuickBooks® has a great invoice interface that we were happy with for a while but that changed in 2001 through no fault of Intuit®. Our industry's unit names are dictated by RUS: the Rural Utilities Services division of USDA. Contracts contain un…
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
In Microsoft Access, learn the trick to repeating sub-report headings at the top of each page. The problem with sub-reports and headings: Add a dummy group to the sub report using the expression =1: Set the “Repeat Section” property of the dummy…

746 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now