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
tdbalkiAsked:
Who is Participating?

Improve company productivity with a Business Account.Sign Up

x
 
Murali MurugesanConnect With a Mentor Full 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
 
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
 
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.

All Courses

From novice to tech pro — start learning today.