I have below refill-flow.xml
deliveryMethod.jsp, easypay.jsp, summary.jsp, cancel.jsp are in same folder as refill-flow.xml.<view-state id="deliveryMethod" >
<transition on="proceed" to="easypay" />
<transition on="cancel" to="cancel" />
</view-state>
<view-state id="easypay">
<transition on="proceed" to="summary" />
<transition on="back" to="deliveryMethod" />
<transition on="cancel" to="cancel" />
</view-state>
<end-state id="summary"/>
<end-state id="cancel" />
deliveryMethod.jsp looks like
and easypay.jsp looks like<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form"%>
<form:form action="${flowExecutionUrl}">
<table>
<tr>
<td>Method1:</td>
<td>store pickup</td>
</tr>
<tr>
<td>Method 2:</td>
<td>home delivery</td>
</tr>
<tr>
<td>
<button type="submit" id="proceed" name="_eventId_proceed">Proceed</button>
</td>
<td>
<button type="submit" id="proceed" name="_eventId_cancel">Cancel</button>
</td>
</tr>
</table>
</form:form>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form"%>
<form:form action="${flowExecutionUrl}">
<table>
<tr>
<td>Method1:</td>
<td>easypay</td>
</tr>
<tr>
<td>Method 2:</td>
<td>one time</td>
</tr>
<tr>
<td>
<button type="submit" name="_eventId_proceed">Proceed</button>
</td>
<td>
<button type="submit" name="_eventId_cancel">Cancel</button>
</td>
</tr>
</table>
</form:form>
on start of the flow, I see URL "http://localhost:8081/xxxx/spring/views/refill?execution=e1s1" and deliveryMethod.jsp is rendered with text and Proceed and Cancel button.
On click of Proceed button, I see URL http://localhost:8081/xxxx/spring/vi...execution=e1s2 and easypay.jsp is rendered. BUT on click of Proceed and Cancel take me bake to deliveryMethod.jsp instead summary.jsp /cancel.jsp.
any suggestions?


Reply With Quote
