Before you start
Spring is a layered Java Platform, Enterprise Edition (Java EE) application framework hosted on the Spring Framework Web site (see Resources for a link). It was developed by Rod Johnson as a code for his famous book, Expert one-on-one J2EE design and development. It's aimed at making Java EE project development easier by providing infrastructure code required by most of the Java EE application. You can think of Spring as a best practices implementation tool.
In this first installment of the series, you'll develop a sample application using the Spring MVC framework and deploy it on WebSphere Application Server Community Edition. The sample application familiarizes you with various concepts, such as how a request is processed under the hood and how to handle form submissions. You'll also learn what changes are required if you're using Jakarta Commons as the logging framework in your application.
To follow along with this tutorial you should have a basic understanding of the following:
- Object-oriented programming
- Java EE terminology
- XML semantics
- JSP tags, tag libraries, and tag library descriptors
This tutorial assumes that you're an experienced Java EE developer,
familiar with the basics of the Spring Framework. An understanding of
Model-View-Controller (MVC) is a plus, but isn't required. Although no
advanced knowledge is required, you should be familiar with how to use
the Spring BeanFactory and the Spring AOP.
You need to download several required applications to follow along with this tutorial and work with the sample code included:
- JDK 1.4.2 -- WebSphere Application Server Community Edition is currently using the Sun Microsystems implementation of Object Request Broker (ORB) for Remote Method Invocation (RMI), so it requires Sun's JDK. You use JDK 1.4.2 to test the sample code in this tutorial.
- WebSphere Application Server Community Edition -- Sample code in this article is tested using version 1.1. If you decide to use some other version of WebSphere Application Server Community Edition, you may have to make some changes in the geronimo-web.xml file.
- Spring Framework -- Use the compressed file with all dependencies. Note: If you don't download the Spring version with all dependencies, then you'll have to download other required JAR files manually. Version 2.0 of the Spring Framework was used while developing the sample code in this article.
- The Eclipse Web Tools Platform (WTP) 1.0.1 -- This open source project makes your Java EE development easy by providing easy-to-use wizards for creating servlets, JavaServer Pages (JSP) components, and Enterprise JavaBeans (EJBs). It also provides editors for JSP and XML. Take a look at the Resources section to find more information on how to use this tool.
- The WebSphere Application Server Community Edition server adapter (formerly called the Eclipse plug-in for WebSphere Application Server Community Edition) -- This server adapter lets you interact with WebSphere Application Server Community Edition from within Eclipse. You can do things like start or stop the server, or start it in normal or debug mode. The server adapter also allows you to run and debug your project on the server by simply right-clicking on a project and choosing Run on Server or Debug on Server. I think this adapter solves one of the biggest problems in open source projects, which is a lack of development tools.
I suggest that you use the Eclipse Web Tools Platform combined with the Eclipse plug-in for WebSphere Application Server Community Edition as your development environment, though it's not required. You can use another editor of your choice. If you do, you can use the Ant build script provided with this sample to build your source code.

