Spring Web Flow Request Mapping not working -
i trying test spring web flow , cannot access flow basing on mapping i'm using. i'm sure must missing simple, here setup...
web.xml:
<servlet> <servlet-name>accommodations</servlet-name> <servlet-class>org.springframework.web.servlet.dispatcherservlet</servlet-class> <load-on-startup>1</load-on-startup> </servlet> <servlet-mapping> <servlet-name>accommodations</servlet-name> <url-pattern>/*</url-pattern> </servlet-mapping> <listener> <listener-class>org.springframework.web.context.contextloaderlistener</listener-class> </listener> <context-param> <param-name>contextconfiglocation</param-name> <param-value> /web-inf/datasource-config.xml /web-inf/security-config.xml /web-inf/webflow-config.xml /web-inf/aop-config.xml </param-value> </context-param>
webflow configuration:
<flow:flow-registry id="flowregistry" base-path="/web-inf/flows/" > <flow:flow-location-pattern value="**/*-flow.xml"/> </flow:flow-registry> <flow:flow-executor id="flowexecutor" flow-registry="flowregistry"/> <bean class="org.springframework.webflow.mvc.servlet.flowhandlermapping"> <property name="flowregistry" ref="flowregistry"/> </bean> <bean class="org.springframework.webflow.mvc.servlet.flowhandleradapter"> <property name="flowexecutor" ref="flowexecutor"/> </bean> </beans>
the flow xml defination locations in "web-inf/flows/accommodations/accommodations-flow.xml", understand /accommodations should map flow.
when point browser /accommodations receive 404.
what mistake making..?
Comments
Post a Comment