updates
This commit is contained in:
@@ -79,10 +79,16 @@
|
||||
</para>
|
||||
<programlisting type="java">
|
||||
public interface FlowHandler {
|
||||
public String getFlowId();
|
||||
|
||||
public String getFlowId();
|
||||
|
||||
public MutableAttributeMap createExecutionInputMap(HttpServletRequest request);
|
||||
public String handleExecutionOutcome(String outcome, AttributeMap output, HttpServletRequest request, HttpServletResponse response);
|
||||
public ModelAndView handleException(FlowException e, HttpServletRequest request, HttpServletResponse response);
|
||||
|
||||
public String handleExecutionOutcome(String outcome, AttributeMap output,
|
||||
HttpServletRequest request, HttpServletResponse response);
|
||||
|
||||
public ModelAndView handleException(FlowException e,
|
||||
HttpServletRequest request, HttpServletResponse response);
|
||||
}
|
||||
</programlisting>
|
||||
<para>
|
||||
@@ -126,7 +132,8 @@ public interface FlowHandler {
|
||||
</para>
|
||||
<programlisting language="java"><![CDATA[
|
||||
public class BookingFlowHandler extends AbstractFlowHandler {
|
||||
public String handleExecutionOutcome(String outcome, AttributeMap output, HttpServletRequest request, HttpServletResponse response) {
|
||||
public String handleExecutionOutcome(String outcome, AttributeMap output,
|
||||
HttpServletRequest request, HttpServletResponse response) {
|
||||
if (outcome.equals("bookingConfirmed")) {
|
||||
return "booking/show?bookingId=" + output.get("bookingId");
|
||||
} else {
|
||||
@@ -201,8 +208,8 @@ public class BookingFlowHandler extends AbstractFlowHandler {
|
||||
<bean id="flowUrlMappings" class="org.springframework.web.servlet.handler.SimpleUrlHandlerMapping">
|
||||
<property name="mappings">
|
||||
<value>
|
||||
/hotels/booking=flowController
|
||||
/login=flowController
|
||||
/hotels/booking=flowController
|
||||
</value>
|
||||
</property>
|
||||
</bean>]]>
|
||||
@@ -221,7 +228,7 @@ public class BookingFlowHandler extends AbstractFlowHandler {
|
||||
</para>
|
||||
<programlisting language="xml"><![CDATA[
|
||||
<webflow:flow-registry id="flowRegistry" flow-builder-services="flowBuilderServices">
|
||||
...
|
||||
<flow:location path="/WEB-INF/hotels/booking/booking.xml" />
|
||||
</webflow:flow-registry>
|
||||
|
||||
<webflow:flow-builder-services id="flowBuilderServices" view-factory-creator="mvcViewFactoryCreator"/>
|
||||
|
||||
Reference in New Issue
Block a user