Java Web Frameworks Survey
You can find all examples as Eclipse projects here. All my code stands under public domain if not otherwise stated. So you can do what you want with the examples.
Try the following procedure to get it working:
- Install gnuplot and adjust the command line in de.wg.core.GnuplotHelper e.g. for windows it should be something like C:\GPpath\gnuplot.exe (I used linux).
- Then you will need a webserver (I used tomcat) and adjust the location of your webapps folder in all the build.xml files.
- Build the WebGnuplot project to create the jar in the dist folder (run the build task of build.xml) and change the location of this project in all examples (ant/build.xml).
- Build all the examples: just run all the ‘build’ ant tasks.
I splitted the examples into several eclipse projects to avoid conflicts (e.g. more than one project uses beanshell) and to compile them independently.
You will have to set up the user libraries for Eclipse to make auto-completion possible. You should put the project specific JAR-files into a subdirectory ‘lib’ of every project.
Define the following user libraries:
- WebGnuplot: WebGnuplot.jar
- Servlet API: servlet-api.jar e.g. from tomcat’s common/lib folder.
- Click: 1 file, 1.8 MB, version: 1.4
- Echo: 3 files, 0.457 MB, version: 2
- GWT: 3 files, 11.8 MB, version: linux-1.4.61
- Thinwire: 2 files, 0.481 MB, version: 1.2 RC2
- Wicket: 23 files, 8.2 MB, version: 1.3.2
- WingS: 5 files, 2.3 MB, version: 3.2
- ZK Framework: 31 files, 19.9 MB, 3.0.3
Maybe you have some usage from the following list, which is based on information from ohloh:
- Click with 1-3 developer
- Wicket with at least 4 developer
- GWT with at least 4 developer
- Thinwire with 1 developer
- Echo with 1 developer
- WingS at least 2 developer
- ZK Framework at least 5 developer
Please correct my assumptions if I they are wrong!
And the winner is …. my brain, hehe.
But which project is the best one? It depends! Do you need commercial support? Do want to integrate it into an existing project e.g. with a pure Servlet solution? Do you want to integrate the UI tests in your regular tests? And so on.
Try the examples or look into the source to get a feeling of ‘how to work’ with a specific framework.
I hope you will have fun!
(Note: Opinions expressed in this article and its replies are the opinions of their respective authors and not those of DZone, Inc.)