• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 3034
  • Last Modified:

Need example for Pagination using struts 2 and MYSql DB

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
tdbalki
Asked:
tdbalki
  • 2
  • 2
1 Solution
 
Murali MurugesanFull stack Java developerCommented:
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
 
tdbalkiAuthor Commented:
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
 
Murali MurugesanFull stack Java developerCommented:
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
 
tdbalkiAuthor Commented:
Looking for alternate approach
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Cloud Class® Course: Microsoft Office 2010

This course will introduce you to the interfaces and features of Microsoft Office 2010 Word, Excel, PowerPoint, Outlook, and Access. You will learn about the features that are shared between all products in the Office suite, as well as the new features that are product specific.

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now