Results 1 to 4 of 4

Thread: How to populate a form and show it to the user !? (newbie)

  1. #1
    Join Date
    Feb 2005
    Location
    Porto Alegre - Rio Grande do Sul - Brasil
    Posts
    8

    Default How to populate a form and show it to the user !? (newbie)

    Hi, all!
    I´m a new spring user and i have a little problem.

    I want to populate a form (jsp view) with information to update.


    Example
    <td>
    <spring:bind path="enterpriseInsurance.address">
    <input name="address" type="text" value="<c:out value='${enterpriseInsurance.address}'/>"/>
    </spring:bind>
    </td>

    So how to put the "enterpriseInsurance" on value without lose the auto bind feature !?

    Sorry by my english and thanks all!

  2. #2
    Join Date
    Feb 2005
    Location
    Porto Alegre - Rio Grande do Sul - Brasil
    Posts
    8

    Default

    Problem solved !

    Thanks anyway !

  3. #3

    Question populate data

    hi,
    i am facing same problem can you tell how did u solve that prob.

  4. #4
    Join Date
    Mar 2011
    Posts
    3

    Default Loading spring class

    Most of the questions are answered in the documentation. However, just a quick pointer. If you are using annotations, have a function to load your bean with data e.g

    Code:
    @ModelAttribute("person")
    public Person fillPersonData(){
        //fill data here
    }
    Then in your form,

    Code:
    <form:form method="post" commandName="person">
    Then call your form:input path attributes similar to your person attributes.

Similar Threads

  1. Replies: 6
    Last Post: Sep 22nd, 2006, 09:08 AM
  2. Simple Form Controller
    By igalmarino in forum Web
    Replies: 1
    Last Post: Aug 30th, 2005, 04:07 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •