使用显示标签和外部分页导出数据

发布于 2024-09-12 13:08:19 字数 503 浏览 4 评论 0原文

我们使用 显示标签库 在 JSP 中显示网格数据。

我们使用外部排序和分页。我们还使用该库的导出功能来允许导出到Excel或PDF。

问题是导出仅导出当前结果集的数据(即:第 20-40 行),而我们希望导出包括所有行。

有人知道该怎么做吗?

我相信当您不使用外部排序和分页时,此功能会自动起作用,因为显示标签具有整个结果集并将其全部包含在导出中。但是我们正在使用外部排序/分页..

We use the Display Tag Library to display grid data in our JSP's.

We use external sorting and pagingation. And we also use the library's export feature to allow exporting to Excel or PDF.

Issue is the export is only exporting the data on the current set of results (ie: rows 20-40) while we want the export to include all rows.

Anyone know how to do this?

I believe this works automatically when you are NOT using external sorting and pagination as Display Tag has the entire resultset and includes it all in the export. However we are using the external sorting/pagination..

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

心碎无痕… 2024-09-19 13:08:19

看来这确实是一个已知问题

我们的解决方案

//Determine if user is doing an export
boolean export = request.getParameter(TableTagParameters.PARAMETER_EXPORTING) != null;

if (export) {
    //Return entire list
} else {
    //Return paginated list
}

Appears this is indeed a known issue.

Our solution

//Determine if user is doing an export
boolean export = request.getParameter(TableTagParameters.PARAMETER_EXPORTING) != null;

if (export) {
    //Return entire list
} else {
    //Return paginated list
}
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文