Getting started with the Spring MVC framework.

Let's start developing the applications using Spring MVC.

Ads

Tutorials   
Spring 4 Introduction and example Features of Spring Framework 5 How to make Spring web Login form? How to make Simple form in Spring web? Spring, Hibernate login and registration application Spring Framework Tutorial for beginners with examples Spring Framework for Apache Hadoop 2.3.0 GA released Spring Framework 4.1 GA is released with major features Why to use Spring Framework? Spring Framework 4.1 - First Release candidate available Spring IO Platform 1.0.0 Released Spring 4: Login Form using Spring MVC and Hibernate Example Spring 4 MVC Login form Example with source code Spring 4 MVC Hello World Example: Spring 4 MVC Tutorial will full source code Spring Web MVC Application Error:ClassNotFoundException: DispatcherServlet on deploying Features of Spring 4 Spring Framework 4.0 released Spring Framework 4: Spring Framework 4 Tutorials and Example Spring Integration 3.0 Release is released and available for download Spring Tutorial for Beginners Java Springs Framework Tutorial Spring Architecture Spring Framework Tutorials database spring registration form Spring Login Example Roseindia Spring Tutorial Spring Tutorial Spring 3.2 MVC insert and retrieve blob from the database The hidden tag The errors tag net.roseindia.dao net.roseindia.service net.roseindia.model net.roseindia.controller Spring 3.2 MVC Hibernate Example Spring 3.2 MVC, Upload File in a specific folder Spring 3.2 MVC Form Handling The textarea tag The options tag The option tag The select tag The radiobuttons tag The radiobutton tag The checkboxes tag mvc:default-servlet-handler Static Resources Configuration View Controllers Configuration View resolvers Spring 3.2 MVC Hello World Example Content Negotiation Configuration
Ads

Spring MVC Getting Started - Getting started with Spring MVC

     

Starting the development using Spring MVC Framework

In this we will quickly start developing the application using Spring MVC module. We will also see what all configuration and code is to be developed. We we will also see how to compile, run the example program.

We will first develop a simple Spring MVC Hello World example and then test on the Tomcat server.

What is required?

In order to complete the tutorial you will need the following software and libraries.

  1. JDK 1.5 or above
  2. Eclipse IDE 3.3 or above
  3. Tomcat 6 or later
  4. Spring framework 2.5 or above

Getting stated:

Please make sure that JDK is installed on your computer. Check your Eclipse IDE version, if it is not 3.3 or above download it from the official website at http://www.eclipse.org/downloads/. Also download Spring 2.5.

Understanding the example:

We are going to develop a very simple example that will just print "Hello World" message on the browser. We will use Eclipse IDE to develop run and test the application.

We will have to follow the following steps:

  1. Create new dynamic web application in eclipse.
  2. Setup tomcat as container to run the application.
  3. Add Spring libraries to the project.
  4. Add necessary configuration in web.xml file.
  5. Create Controller class.
  6. Create dispatcher-servlet.xml and add required mapping the xml file.
  7. Create JSP file to display "Hello World" message.
  8. Finally run tomcat and deploy the application on the tomcat.
  9. And check application in web browser.

In the next section we will create new project in eclipse and add spring libraries.

Advertisements

Share on Google+Share on Google+

Getting started with the Spring MVC framework.

Posted on: August 19, 2010 If you enjoyed this post then why not add us on Google+? Add us to your Circles

Advertisements

 

Discuss: Getting started with the Spring MVC framework.  

Post your Comment


Your Name (*) :
Your Email :
Subject (*):
Your Comment (*):
  Reload Image
 
 
Comments:2
sasasas
June 10, 2011
Hi

its good
prakash
August 22, 2011
spring learning

its good website to learn quickly..

Ads

 

Ads