Java(TM) Boutique - The Power of Three - Eclipse, Tomcat, and Struts
As a programmer it's important to be productive, and as any other craftsman you need good tools to be productive. In this article I'll present a set of tools, which can really help you get your job done. What's more, they're all free, open source, and well documented. I've been using these tools in several real-life projects and have found that they often outdo expensive development tools. This is because they're simple to install, simple to use, reliable and have good performance.
The names of the tools are Eclipse, Tomcat, and Struts.
You've probably heard about all of them, and maybe you have used them in your work, but anyway: here's a short description of each:
So, these tools are made for making web applications based on the servlet specification. They don't cover EJB's, since Tomcat is not an EJB-server, and standard Eclipse does not cover EJB's.
Eclipse has a project type for Java development, but strangely enough not for Java web application development. A Java web application is characterized by a special directory structure (war-file structure), and a set of specialized files: jsp-files, XML configuration files, servlets, etc. To fill this gap, a very nice Eclipse plug-in from sysdeo.com is at hand. It not only gives us the web application project but also a way of managing the Tomcat server from within Eclipse. Below we'll see how to install and use this plug-in.
Struts gives you a way of building modular, de-coupled web applications. How Struts is included in Eclipse is another topic that'll be covered later in this article.
How to debug Jsp, servlet etc.www.sysdeo.com/eclipse/tomcatPlugin.html
来自 “ ITPUB博客 ” ，链接：http://blog.itpub.net/4082/viewspace-1002352/，如需转载，请注明出处，否则将追究法律责任。