Config ZK Spring Webflow

From Documentation
Revision as of 01:47, 25 February 2011 by Ashishd (talk | contribs)


Purpose

Setup ZK Spring Webflow

Prerequisite

ZK Spring Webflow depends on ZK Spring Core so any configuration for ZK Spring Core is a prerequisite for setting up ZK Spring Weblow.

Configuration

To enable ZK Spring Webflow in your application all you need to do is include ZK Spring Core and ZK Spring Webflow libraries in your application classpath by copying them to your web project WEB-INF/lib folder.

Example specific configuration

Here we will describe some configurations needed to setup ZK Spring Webflow example that is described in the following sections. In our example Spring Webflow is used in conjunction with Spring MVC hence first we need to declare Spring MVC servlet configurations in web.xml

    <!-- The front controller of this Spring Web application, responsible for handling all application requests -->
    <servlet>
        <servlet-name>Spring MVC Dispatcher Servlet</servlet-name>
        <servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class>
        <init-param>
            <param-name>contextConfigLocation</param-name>
            <param-value></param-value>
        </init-param>
        <load-on-startup>1</load-on-startup>
    </servlet>
        
    <!-- Map all *.spring requests to the DispatcherServlet for handling -->
    <servlet-mapping>
        <servlet-name>Spring MVC Dispatcher Servlet</servlet-name>
        <url-pattern>/spring/*</url-pattern>
    </servlet-mapping>

Here contextConfigLocation is where Spring MVC will look for application specific configuration files which are described in the next sections.

Version History

Last Update : 2011/02/25


Version Date Content
     


Last Update : 2011/02/25

Copyright © Potix Corporation. This article is licensed under GNU Free Documentation License.