Config ZK Spring Webflow"
(Created page with "{{ZKSpringEssentialsPageHeader}} ===Purpose=== ===Example=== ===Configuration=== =Version History= {{LastUpdated}} {| border='1px' | width="100%" ! Version !! Date !! Content |-...") |
|||
Line 1: | Line 1: | ||
{{ZKSpringEssentialsPageHeader}} | {{ZKSpringEssentialsPageHeader}} | ||
===Purpose=== | ===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=== | ===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 | ||
+ | <source lang="xml" start="63"> | ||
+ | <!-- 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> | ||
+ | |||
+ | |||
+ | </source> | ||
+ | Here contextConfigLocation is where Spring MVC will look for application specific configuration files which are described in the next sections. | ||
=Version History= | =Version History= |
Revision as of 01:47, 25 February 2011
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
Version | Date | Content |
---|---|---|