Java beginner web-development toolkit/environment

夙愿已清 提交于 2019-12-02 17:20:52
Lucas Jones
  • Server side
    Tomcat6
  • CMS
    Drupal (not necessary in prilim phase)
  • Editor / IDE
    NetBeans (good for a beginner)
  • General tools/utilities
    (Almost everything is in NetBeans... go for it later)
  • Directed (special purpose) tools/utilities
    (Almost everything is in NetBeans... go for it later)
  • Testing and QA tools/utilities/techniques
    JUNIT and use FireBug (Do manual testing first)
  • Reference material (both on- & off-line)
    HeadFirst Series on JSP, JavaScript, etc.
    SCRIBD (online)

For web-development I use (and would recommend) the following:

  • JSP/Servlet API
  • Spring MVC
  • JQuery
  • XHTML & CSS
  • Fitnesse

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.

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.

CMS

  • Tortoise SVN

Editor / IDE

  • eclipse

General tools/utilities

  • Maven (build and deploy tool)
  • Cruise Control
  • GWT/ext-GWT/ICEFaces - web component technology
  • Spring - dependency injection framework
  • Hibernate - ORM
  • Axis 2.0 web service development kit
  • Jboss

Directed (special purpose) tools/utilities

  • log5j - for logging

Testing and QA tools/utilities/techniques

- Watij
- Firebug
- QTP for automated testing
- Junit Perf (Junit test cases for performance testing.)

Reference material (both on- & off-line)

  • Java docs of each of the technologies
  • Google ofcourse :)

Try vcl.js is all in one (front end and backend) enterprise web development tool,

  1. Visual Component Library- include Page,Grid,Input,Gauges,Charts and many more
  2. Pure JavaScript
  3. Single page application
  4. .Net Backend
  5. Data binding
  6. Twitter bootstrap
  7. Simple database query execution
  8. Routing
  9. AMD - Module loader

I guess the idea is that you don’t need to learn jquery,Sammyjs or any other framework

First paragraph edited by request of slashmais : This answer is not really aligned with others, and the rephrased question. It's more of a complement to other answers. I believe the personal preferences are really important in choosing between technologies. I see it as (dis)liking some things, and choosing the technologies that correspond. The rest of the answer gives examples:


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:

  • use a statically type language (like java)
  • use an IDE that compiles as you type (like Eclipse)
  • any Xml must be validated, via strict xsd. If the content have references to other information (such as java code), then it should be checked (like Spring checking for bean classes).
  • for the view technology, because it depends on my java code, I must have a verification that includes my actual java code. An idea could be to code my view in Java. (like Wicket).
  • my properties need to be in properties files for translation. But using String keys in my code (or view) is not acceptable. I would run a small tool that create java enums from each property file, and my code would reference the enums.
  • ... and so on

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):

  • Maven is the build tool of choice. It will impose many constraints, but also provide out-of-the-box many "build" features...
  • For a web application, I couldn't use Struts 1, because they are these huge configuration files in struts-config.xml, mostly with plumbing code. I would definitely switch to something like Spring MVC, that has default values for mapping urls to controllers.
  • and so on ...

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:

  • in the view, I would cleanly separate my model (clean Html, no formatting, no script), my view (or formatting, external css only), and my controller (javascript, using the non-obstrusive javascript policy).
  • in the webapp, I could use Spring MVC to separate well those layers.
  • in the business (this example is a bit constrived :-) ), I could have a rich domain model, use extensively the command pattern ("controllers"), and expose explicitely my business services as an interface API ("view").
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!