Getting started with Spring Web Flow 2.0

Source: Internet
Author: User
Tags create index

Spring Web Flow 2.0 is an extension of Spring Web MVC, which, if roughly, is equivalent to a special controller in spring Web MVC, which can be controller through XML files, so you need to configure Spring Web MVC before using Spring Web Flow 2.0, as follows:

Create a directory structure for a WEB application

Import a related class library under/web-inf/lib

Declare dispatcherservlet in the WEB application Deployment Descriptor file Web.xml and specify the configuration file

Add Dispatcherservlet Mappings

Creating Web-application-config.xml Files

Creating Webmvc-config.xml Files

Create index.jsp

Create a directory structure for a WEB application

This example applies the directory structure that will be generated by default in the Eclipse Dynamic Web Project Wizard, adding Config and flows subdirectories in the Web-inf directory, where the Config subdirectory is used to store various profiles, flows the subdirectories The definition file for Spring Web flow. The final catalog is shown in Figure 3:

Figure 2 Directory structure

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.