在 Struts 2 和 Hibernate 中使用分页 [英] Using a pagination with Struts 2 and Hibernate

查看:28
本文介绍了在 Struts 2 和 Hibernate 中使用分页的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在寻找使用 Struts2 和 Hibernate 实现分页的想法.我的表格包含太多行,例如,我一次只能看到 20 行.使用 PREVIOUSNEXT 按钮.

I'm looking for ideas to implement a pagination with Struts2 and Hibernate. My table contains too many lines and it should be as I can see only 20 at a time, for example. With PREVIOUS and NEXT buttons.

推荐答案

分页示例是 此处.正如我在我的上一个答案中已经解释的那样,displaytag 是一个很好的库,并且流行了大约十年,它是开源的,所以您可以轻松地从来源中获取想法,但是您可以按原样使用它,并且不容易修改它以满足您的需要.这就是为什么你正在寻找想法.感谢网络上分享我同意的想法的人,您可以在他的代码示例中找到.

The pagination example is here. As I've already explained in my previous answer displaytag is a good library and was popular about decade, it's open source, so you could easily grab ideas from the sources, however you can use it as is, and it's not easy to modify it to suit your needs. That's why you are looking for ideas. Thanks the guy on the web who share the ideas that I agree with, you can find in his code example.

这篇关于在 Struts 2 和 Hibernate 中使用分页的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆