预定报告的显示标签在哪里?
所以我一直在制作一些报告,并使用 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
为什么需要从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.