Solved

Need example for Pagination using struts 2 and MYSql DB

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
HasData 9 37
diffSum example 4 26
Syntax Error in Query 7 31
Importing and Dropping Table in Access 11 24
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…
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 …
Familiarize people with the process of utilizing SQL Server stored procedures from within Microsoft Access. Microsoft Access is a very powerful client/server development tool. One of the SQL Server objects that you can interact with from within Micr…
With Microsoft Access, learn how to start a database in different ways and produce different start-up actions allowing you to use a single database to perform multiple tasks. Specify a start-up form through options: Specify an Autoexec macro: Us…

920 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