Solved

Need example for Pagination using struts 2 and MYSql DB

Posted on 2009-05-15
4
2,942 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

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction This article is the last of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers our test design approach and then goes through a simple test case example, how …
Preparing an email is something we should all take special care with – especially when the email is for somebody you may not know very well. The pressures of everyday working life stacked with a hectic office environment can make this a real challen…
What’s inside an Access Desktop Database. Will look at the basic interface, Navigation Pane (Database Container), Tables, Queries, Forms, Report, Macro’s, and VBA code.
This tutorial covers a practical example of lazy loading technique and early loading technique in a Singleton Design Pattern.

791 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