Hi All,
Please help me in this regard, that I have a SimpleFormController and one JSP Page.And all button actions performed to bring the corresponding successviews in the same JSP page home page downbelow the main content.I have one POJO/flowBean.I have a summary button in the form and once I click the button I am supposed to show the result summary page of all the inputs I have done in the earlier steps.
I am using <spring:bind> to take the inputs from the Textfields and the dropdownlists and I am able to take the values in the backend flowBean but unable to show them in summary page.
and another question even though I am using <spring:bind> whatever the inputs I put if I go back to the previous view the inputs are lost.How to hold the input values.
A sample JSP with code will be helpful
Here is the code.
<form:form method="post" commandName="flowbean">
<!----------------------- Begin form part------------------------------------------->
<p><font face="Verdana" size="2">First Name:</font><spring:bind path="legalHoldProductName"><input
type="text" name="firstName" size="20" value="<c:out value="${flowbean.firstName}"/>"></spring:bind></p>
<p><font face="Verdana" size="2">Last Name:</font><spring:bind path="lastName"><input
type="text" name="firstName" size="20" value="<c:out value="${flowbean.lastName}"/>"></spring:bind></p>
<!-----------------------End form part------------------------------------------->
<!-----------------------Begin summary part------------------------------------------->
<table border="2" width="100" bordercolor="#000000">
<p><font size="5"><em><strong>First Summary Screen</strong></em></font></p>
<tr>
<td bgcolor="#BFBFFF"><strong>First Name</strong></td>
<td bgcolor="#BFBFFF"><strong>Last Name</strong></td>
</tr>
<tr>
<td border="2" bordercolor="#000000" align="center"><form:input disabled="true" path="firstName"/></td>
<td border="2" bordercolor="#000000" align="center"><form:input disabled="true" path="lastName"/></td>
<!-----------------------End summary part------------------------------------------->
</form:form>
Thanks