Spring Web Flow: Using Sub Flows

Concept Overview The previous tutorial introduced spring web flow and the concept of states, transitions and flow data. In this tutorial we show an example of how a sub flow can be used a state in a root flow Sample Program Overview We continue with the earlier example of the logic application, however we add … Read more

Spring Web Flow Basics

Concept Overview Spring Web Flow is a framework that allows development of a flow in a web application. The flow guides user from one element of the application to another. How Does it Work Spring Web Flow uses the Spring MVC framework. The DispatcherServlet handles the request. A FlowHandlerMapping is used to map the request … Read more

Spring – XML Free Web Application

In this example we build a spring based XML free web application. That’s right, no XML. Why would you want an XML free web application? No reason. It just sounds cool. Although if you do it that way a couple of times, you can’t go back to XML. You wouldnt want to. probably… Step 1 … Read more

Spring MVC: Handling File Upload

Concept Overview Please see this tutorial for an introduction to Spring MVC. In this tutorial we look at how to upload files using spring MVC framework. There are three things that need to be done to be enable file upload in a form. Add a file upload field in the form. This can be easily … Read more

Spring MVC Form Processing

Concept Overview Please see this tutorial for an introduction to Spring MVC. In this tutorial we see how Spring can be used for presenting and submitting forms. The example in this tutorial does three things 1. It presents a form to add a new ‘Person’. 2. It validates the form 3. It creates the new … Read more

Spring View Resolver

Please see this tutorial for an introduction to Spring MVC. In This tutorial we look at the Controllers and View Resolvers. Controller The DispatcherServlet receives request and then passes on the request to the appropriate Controller. The base Controller interface receives HttpServletRequest and HttpServletResponse. Controllers are like struts Action. The implementation of Controller should be … Read more

Spring HandlerMappings

Please see this tutorial for an introduction to Spring MVC. In this tutorial we describe the various HandlerMapping classes available in Spring HandlerMapping HandlerMapping is an interface that is implemented by all Objects that map the request to the corresponding Handler Object. A HandlerExecutionChain always wraps the Handler and may also contain one or more … Read more

Spring HandlerAdapters

Please see this tutorial for an introduction to Spring MVC. In this tutorial we describe the various HandlerAdapter classes available in Spring HandlerAdapter HandlerAdapter is responsible for actually invoking the handler. The handler is of type Object and hence the dispatcher servlet can handle any Handler type using the HandlerAdapter. Spring provides certain HandlerAdapters that … Read more

Spring MVC Basics

Concept Overview Spring has a well developed and highly plugable framework for Web Development. It is based on Model, View and Controller (MVC) Framework. The DispatcherServlet handles the whole show, right from intercepting the request, to delegating the request to appropriate controllers and rendering the view. It follows the FrontController design pattern. To understand the … Read more