13 tips for building Java servlet applications
From "Servlets Part 2: Understanding Java servlets and putting them to work" by Jim Mason, AS/400 Experts Journal, Vol. 3, No. 2, March/April 2000. Provided courtesy of The 400 Group (http://www.the400group.com).
The following tips are based on the use of the VisualAge developer tool.
1. Decide on the right tools for your education and projects. Get some good advice from experts you know, and look for reviews of the best tools.
2. Pick the latest version of VisualAge (or another tool) for Java possible when developing servlets.
3. Always apply the latest fix packs for VisualAge for Java.
4. Use the Enterprise version of VisualAge for Java if you are planning on delivering Java applications for you company. The Professional edition is a good choice if you are just beginning to learn Java.
5. Export your servlet application packages to an external directory for testing.
6. Remember to specify URLs correctly qualifying packages names in web apps. Use a period, not a forward slash.
7. Use the best web server engine test environment possible. The latest version of WebSphere matches the support in VisualAge for Java and your other development tools.
8. Build your application as Java beans. A "beans" approach brings several advantages to your applications: separation of the business logic from the interfaces, easy access for reuse to all your business logic and the thousands of classes in Java and the ability to build "smart" components that reduce development by an order of magnitude.
9. Build the interface to your applications using servlets. Servlets provide a simple "message based, client-server" common interface to your applications.
10. Leverage the power of DB2. It has very robust support for integrating applications and transactions using stored procedures, reliable application messaging, distributed data access and object store.
11. Build the web interface to your servlets using Java Server Pages. JSP is a scripting language for incorporating Java beans into web pages.
12. Get some good training. Where possible, try to find mentors who combine a broad range of expertise.
13. Expect more from your tools and yourself. With Java, there are many facets of development that are under your control.
Interested in unified communications applications? Read these top 13 tips.
Containerization supports a variety of functions, and can help with debugging Java apps.