Java Web应用程序的Reporting Services设计 [英] Design of Reporting Services for Java webapp

查看:200
本文介绍了Java Web应用程序的Reporting Services设计的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

设计问题。



我今年早些时候开发了一个在线测试引擎网络应用程序。我已经使用了Java servlet和Freemarker模板,完全遵循MVC范例。



应用程序中一个很大的缺失功能是它不提供报告。该应用程序的初始设计并未将报告视为核心的一部分,因为存在各种约束,不一定是技术性的。现在需要的报告服务应该使用户能够随时在线获取报告,并以预定义的格式下载报告。



应用程序已经发展到一个阶段,我不想在其中加入更多代码,并希望隔离核心模块并围绕这个核心开发未来需求。 / p>

我想听听一些有关如何围绕核心应用开发此报告服务的想法。



我还可以使用哪些报告工具?我过去曾使用过Jasper,但听说BIRT也很好。提出你的建议。

解决方案

如果您有相当高级的要求,Jasper是一个不错的选择,例如:




  • 支持深奥的格式

  • 亲子报告

  • 图表和图表



但如果你真的只需要以流行的格式(如HTML / PDF / XLS)显示表格报告,那么只需 diplaytag ,比Jasper要求的努力少得多。



一个简单的表格报告使用displaytag大约需要20行JSP代码,但同一报告需要使用Jasper大约500行XML。我会调查displaytag是否能够满足您的要求,然后再投入BIRT / Jasper这样的重量级报告解决方案。


A design question.

I have developed an online test engine web app earlier this year. I have used Java servlets and Freemarker templates and done it entirely following the MVC paradigm.

One big missing feature in the application is that it provides no reporting. The initial design of the application did not consider reporting as part of the core because of various constraints, not necessarily technical. Reporting services as needed now should enable users to get their reports online anytime as well as download them in predefined formats.

The application has grown into a stage where I would not like to put in more code into it and want to isolate the core modules and develop future needs around this core.

I would like to hear a few ideas as to how to go on developing this reporting service around the core app.

Also what reporting tools can I use? I have used Jasper in the past but heard BIRT is good too. Throw your suggestions.

解决方案

While Jasper is a pretty good choice if you have fairly advanced requirements such as:

  • Supporting esoteric formats
  • Parent-child reports
  • Charts and graphs

But if you really only need to show tabular reports in popular formats such as HTML/PDF/XLS, then you can go a long way with just diplaytag, with a lot less effort than Jasper requires.

A simple tabular report takes about 20 lines of JSP code using displaytag, but the same report requires about 500 lines of XML using Jasper. I'd investigate whether displaytag can meet your requirements before committing to a 'heavyweight reporting solution such as BIRT/Jasper.

这篇关于Java Web应用程序的Reporting Services设计的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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