• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Jeanne Boyarsky
  • Ron McLeod
Sheriffs:
  • Paul Clapham
  • Liutauras Vilda
  • Devaka Cooray
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
Bartenders:

spring:bind

 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
Did you miss me? Did you miss this tiny ad?
Smokeless wood heat with a rocket mass heater
https://woodheat.net
reply
    Bookmark Topic Watch Topic
  • New Topic