预定报告的显示标签在哪里?

发布于 2024-08-08 17:51:37 字数 402 浏览 2 评论 0原文

所以我一直在制作一些报告,并使用 displaytag 以 html、csv、excel、pdf 等格式输出这些报告。它们是分页的,并采用简单的对象图......并且每次都用很少的代码输出出色的结果。

但是,我需要在 jsp 之外使用 displaytag 或其等效项。这样用户就可以计划运行报告,并将该报告存储在数据库中,或通过电子邮件发送以供以后查看。我已经研究过基于 jasper 的报告解决方案,但是制作 jasper jrxml 文件只是一场噩梦。我知道有 GUI 工具可以提供帮助,但我对 displaytable 的简单输出感到满意,因此我很高兴放弃该控制以方便实现。

真的,如果我可以从 jsp 中取出 display:table 配置,我会的,所以在提出解决方案时请记住这一点。

顺便说一句,Java 解决方案将是我的最爱。

So I have been making some reports and using displaytag to output these reports in html, csv, excel, pdf, etc. They are paginated, and take a simple object graph... and output excellent results everytime, with very little code.

However, I need to use displaytag or its equivalent outside of a jsp. So that a user can schedule a report to run, and that report is stored in a db, or emailed for later viewing. I have looked at jasper-based reporting solutions, but making a jasper jrxml file is just a nightmare. I know there are gui tools to help, but I'm content with the simple output of displaytable, so I'm happy to give up that control for ease of implementation.

Really, if I could take the display:table config out of the jsp I would, so please keep that in mind when proposing a solution.

btw, java solutions would be my cup of tea.

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

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

发布评论

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

评论(1

饮湿 2024-08-15 17:51:37

为什么需要从JSP中取出来呢?它在格式化数据方面做得非常好。

您可以编写一些代码来向您的报告 JSP 发出 Web 请求。然后它将输出流式传输到磁盘,或者您想做的任何事情。最简单的方法是使用 URL< /a> 和 HttpURLConnection 类提出请求。

然后只需安排这个新代码,无需对 JSP 进行任何更改。

Why do you need to take it out of the JSP? It's doing a perfectly good job there of formatting your data.

You could write some code which makes a web request to your reporting JSP. It then streams the output to disk, or what ever it is you want to do. The simplest way would be to use the URL and HttpURLConnection classes to make the request.

Then simply schedule this new code, without having to make any changes to your JSP.

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