Design of Reporting Services for Java webapp [closed] - java

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 4 years ago.
Improve this question
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.

I would recommend Jasper because I've used it in the past and found it quite easy to configure and use. It is possible to integrate it into your application without too much trouble.
I have only heard good things about BIRT but never implemented it myself.

I would recommend art: http://art.sourceforge.net/. We are using this tool without any problems. It is still active project so if you add new feature you can add request for it.

Related

Alternatives to Java applets [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 2 years ago.
Improve this question
I'm planning to write a simple program that displays course prerequisites for students at my university in graph form (ie as a network of vertices and edges). I'd like to embed the program in a webpage to save people the hassle of downloading an executable.
Currently I'm looking at making my program a Java applet (Java also would give me access to the handy Swing library), but I don't like the fact that applets can't be viewed on most mobile devices.
What alternatives to applets exist for a project like this? I'd like to make it compatible with as many devices as possible, and also not have to build the graphics stuff from scratch.
One final consideration is I'm doing this mostly as a learning exercise. Ideally the tools I'd be working with would be helpful to know in the future.
Please don't use applets. They have been sufficiently deprecated.
The best way to do this is by using html/js/css. A lot of useful libraries exist that can help you with this task. jQuery seems obvious, but there's also d3.js or vis.js for displaying visual representations of data, and bootstrap for responsiveness (mobile friendliness).
You may use Angularjs with angular-chart for Showing graph in Web Browser.
If your graph data is dynamic you might use Nodejs and mongoDB for backend.
angular-chart is responsive and its easy to show dynamic graph. But as it uses HTML5 canvas some mobile browsers might not show its transitions smoothly depending on the device.
I personally do not prefer using applet in web browser when the same functionality can be achieved using great frameworks like Angularjs.
why dont you try to build your project through Servlet framework
by the way cgi were removed by servlet because of the handling of the request
applet uses the same concept

Seeking Code Generator for Spring Web Application [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 8 years ago.
Improve this question
I have been vetting the process of Code Generators online. I started my search with a promising but not popular Eclipse plugin called FastCode (http://www.3pintech.com/products/fast-code/).
It had a higher learning curve with a tradeoff for flexibility. That was find for me because a lot of our application follows a certain standard that I would need to maintain with the generated code. Unfortunately it was very buggy and I think it may be a dead project.
On to SpringFuse. This looked promising, but I have a few problem with it.
1) We are far into our project development lifecycle and I only need to use it for a subset of new tables in our MYSql database. Springfuse seems to take a "let us generate your entire application" approach.
2) We don't use Hibernate and SpringFuse seems to be tied into this
3) It doesn't seem to be that configurable
What I would like to do is start with a database table, and from there generate a corresponding POJO, DAO for CRUD operations, Service Layer to call the DAO and a Unit test for testing each layer. We have a standard pattern for creating our DAO layer that I will be using.
I am considering using Perl or maybe another templating system to do this but that will involve a significant amount of coding on my part. I was wondering if the SO community knows of any good technologies to use here.
I actually think an online sevice would be awesome here, something like the awesome JSON2POJO, but I don't think it exists.
After some research, the solution that worked best for me was to use the FreeMarker Java Template Engine and write my own code generation system. Using regular expressions to parse our database file and converting some of our existing code into FreeMarker templates only took a couple of days and yielded a system that is going to save us a lot of time.
I recommend this approach to users who are in a similar spot for highly customized Enterprise Applications. Most of the rendered code is not fit for primetime, but the base boilerplate code I'm generating results in huge time-savings.
FreeMarker's templating system is very similar to other technologies like JSTL and it throws very descriptive error messages so designing the templates was very simple.

Dynamic website framework suggestions [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 8 years ago.
Improve this question
What are the open source java based frameworks that can be used to build a dynamic websites?
The dynamic website should allow users to change content in the site. I am not looking for a portal solution, but something lightweight and customizable.
I would recommend Play! Framework. I have worked with it before and it is pretty easy to learn. Extensive tutorials and documentation are on their website.
Because of Play's extensibility, there are many modules for it, one of which is a lightweight CMS module. I have not used this module, but it sounds like what you might be looking for.
Search about Spring MVC or JSF.
Really every Java web framework can be used to create dynamic sites. That's pretty much the entire point of using Java and such frameworks.
If you only needed to serve static content just Apache would be all you need,
There is a bewildering choice of web frameworks in Java. Everyone will tell you theirs is best and all others are bad.
My 2 cents; JSF is one of the most popular choices, rather easy and has lots of support and resources available for it. It's already part of the standard Java EE library, so in most cases you don't have to download or install anything to get started. Any Java EE implementation (JBoss, Glassfish, Resin, Geronimo, etc etc) will do. The only exception is Tomcat.
While there are other choices that also work, it's hard to go wrong with JSF.

Recomended GWT Frameworks for single page application [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 8 years ago.
Improve this question
After google around, I have to ask this question on StackOverflow.
There are frameworks around, but most of them are from 2008 2009, unmaintained, multipage or will not work with GWT 2.0
What are the recommended framework should I use for a single page application that will scale most in term of deploy? 1 language is a plus point because GWT is all about 1 language, beside if we tune the server to run Java and serve HTML pages, it will be faster.
But any framework that works and good is okay also.
Thanks :)
In addition to Jay Askren's suggestions, another good framework is gwt-platform, which is a combination of two other good frameworks, gwt-presenter and gwt-dispatch.
I recommend watching this from last year's Google IO. They recommended using the Model-View-Presenter pattern for GWT apps. Here is one implementation of this pattern.
The following from this year's GoogleIO might also be helpful:
http://code.google.com/events/io/2010/sessions/architecting-performance-gwt.html
http://code.google.com/events/io/2010/sessions/architecting-production-gwt.html
I should also mention that GWT is a framework in and of itself. The above are more best practices on how to use the framework.
Have you looked at Sencha GXT? It's a single page framework.
http://www.sencha.com/products/gxt/
I think it's also important to note that GWT 2.1 will include a lot of application framework pieces. From what I've seen so far on the contributor mailing list, it should include:
MVP framework
EventBus integration
PlaceManager for navigation
Data presentation widgets (i.e. data binding)
Validation hooks? (JSR-303 annotations recently committed)
So make sure to check out vanilla GWT 2.1 M2 as well.

Anyone know of a Java reporting tools which has a web based visual report designer? [closed]

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 10 years ago.
Improve this question
We're currently evaluating different Java reporting engines, and having a web-based ad-hoc report designer is a requirement.
We don't need anything too fancy, but we need users to be able to define a report with columns X, grouped by Y, sorted by Z, etc...
We've found that many of the open source tools do have graphical report designers, but the designers are typically not web based. (For example, iReport from JasperReports seems to be an application, not a web tool)
Can anyone recommend a reporting tool which meets this web-based requirement?
Apparently JasperServer is exactly that (see "Drag and drop ad hoc report building" - http://www.jaspersoft.com/jasperserver). Haven't used it myself though.
(full disclosure: yes, i work for i-net software)
Looks to me like our own i-net Clear Reports (used to be i-net Crystal-Clear) might work great.
Can read Crystal Reports templates
Supports any JDBC data source
Has a web-based (and also Swing-based) ad hoc report creation tool
...as well as a full-fledged report designer and report server
includes a report repository for storing reports
free and fully functional offline report designer as well
Check out our Ad Hoc demo and tell us what you think.
Use Crystal Reports for JSP pages.
It's a good tool.

Categories