I have been tasked to develop an interactive website using java & mysql: using servlets to retrieve & massage data, applets to do special handling of the data client-side, and to handle requests from the client for different data views.
What would you recommend as an proper general-purpose toolkit/environment for web development using java.
I need to know what to use for the following:
- Server side (tomcat?/?)
- CMS
- Editor / IDE
- General tools/utilities
- Directed (special purpose) tools/utilities
- Testing and QA tools/utilities/techniques
- Reference material (both on- & off-line)
Please evaluate the suggested solution(s) and supply alternatives/improvements/support.
Suggested Java web-development toolkit/environment
By cdb:
- Server side:
Tomcat6 - CMS:
Drupal (not necessary in preliminary phase) - Editor/IDE:
NetBeans (good for a beginner) - General tools:
(Almost everything is in NetBeans... go for it later) - Directed (special purpose):
(Almost everything is in NetBeans... go for it later) - Testing and QA:
JUnit and use Firebug (Do manual testing first) - Reference material:
HeadFirst Series on JSP, JavaScript, etc.
SCRIBD (online)
[edit] - Framework:
Spring Web MVC 2.5 - (this seems to contain most of the other frameworks)
Options distilled from the answers
Server side
- Apache Tomcat - "HTTP web server environment for Java code to run"
- Jetty - "HTTP server, HTTP client and javax.servlet container"
- GlassFish - application server (based on Tomcat + more features)
- JBoss - application server ("J2EE based application server implemented in 100% Pure Java")
CMS
Editor / IDE
General tools/utilities
- Maven - ".. a tool that can now be used for building and managing any Java-based project."
- log5j also here[SourceForge] - "java logging library for Java versions 5 and above"
Directed (special purpose) tools/utilities
- CruiseControl - team based "tool and an extensible framework for creating a custom continuous build process"
- Spring Framework (- design)
Testing and QA tools/utilities/techniques
- Watij - "Java API created to allow for the automation of web applications"
- HtmlUnit - "It models HTML documents and provides an API that allows you to invoke pages, fill out forms, click links, etc..."
- Firebug - (Firefox) "edit, debug, and monitor CSS, HTML, and JavaScript live in any web page"
- Hudson - "Building/testing software projects [...] Monitoring executions of externally-run jobs"
- LiveHttpHeaders - view & edit http request headers live
- JUnit - "framework to write repeatable tests"
Reference material (both on- & off-line)
- A List Apart - "For people who make websites"
- Java - TiJ
Tomcat6
Drupal (not necessary in prilim phase)
NetBeans (good for a beginner)
(Almost everything is in NetBeans... go for it later)
(Almost everything is in NetBeans... go for it later)
JUNIT and use FireBug (Do manual testing first)
HeadFirst Series on JSP, JavaScript, etc.
SCRIBD (online)
Try vcl.js is all in one (front end and backend) enterprise web development tool,
I guess the idea is that you don’t need to learn jquery,Sammyjs or any other framework
Tomcat and Jetty are both well-known/supported servlet containers. If you're building a deployable for customers you may want to test on both, if you don't control the deployment.
For testing, check out (along with your normal unit test frameworks of JUnit/TestNG) Watij and/or HtmlUnit. These will allow you to automate the actual web/browser interactions and will save you a world of grief in the long run. The downside is that you'll have to invest some time in setting up your tests.
Related to automated tests, I think you need an automated build / continuous integration system. Numerous abound in the Java world. Two common ones are CruiseControl and Hudson.
For a lot of the above, standard Java/development tooling applies e.g. the 'standard' IDEs (Netbeans/Eclipse/Intellij - Intellij is worth paying for, btw). The same applies for CMS and there are lots of resources on this website about the pros/cons of SVN/Git/Mercurial etc. It's worth checking that your choice of CMS integrates with your IDE.
I would check out Firebug for simplifying development (on Firefox). It makes the front end development a lot easier. LiveHttpHeaders will ease diagnosis of issues relating to HTTP transfer.
For web-development I use (and would recommend) the following:
With regards to resources, all these technologies are well documented on their respective sites, the only exception being XHTML & CSS for which I'd suggest http://www.alistapart.com.
With regards to editors both IntelliJ and (I believe) Eclipse have very good HTML, CSS, JSP and JavaScript editors.
Also use Firefox (as Brian has suggested) with both the Web Developer plugin and Firebug - both of these are indispensable.
For example, suppose I believe the developer's actions should be checked in real-time as much as possible, to receive immediate feedback, and also completion if possible, and avoid early so many errors. This (dis)liking determines some preferences:
Other example, suppose I strongly prefer "Convention over Configuration". That is, I agree to follow stricts rules in my project, getting much less plumbing to do manually (because default values fit):
Other example, suppose I believe so much in the Model-View-Controller separation, for clarity and reuse, that I want to stretch it a bit. I could use:
CMS
Editor / IDE
General tools/utilities
Directed (special purpose) tools/utilities
Testing and QA tools/utilities/techniques
Reference material (both on- & off-line)