Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Need example for Pagination using struts 2 and MYSql DB

Posted on 2009-05-15
4
Medium Priority
?
2,984 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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 40 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

Visualize your virtual and backup environments

Create well-organized and polished visualizations of your virtual and backup environments when planning VMware vSphere, Microsoft Hyper-V or Veeam deployments. It helps you to gain better visibility and valuable business insights.

Question has a verified solution.

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

This article describes a method of delivering Word templates for use in merging Access data to Word documents, that requires no computer knowledge on the part of the recipient -- the templates are saved in table fields, and are extracted and install…
A solution for Fortify Path Manipulation.
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…
This lesson discusses how to use a Mainform + Subforms in Microsoft Access to find and enter data for payments on orders. The sample data comes from a custom shop that builds and sells movable storage structures that are delivered to your property. …

618 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