Results 1 to 2 of 2

Thread: Spring:bind Vs form:hidden

Hybrid View

  1. #1

    Default Spring:bind Vs form:hidden

    What exactly is the difference between spring:bind and form:hidden tags?

    Do they both carry back the values to the controller? What is the best way to carry the selected values back to the controller when the form is submitted.

    I am currently using form:hidden. But not sure this is the recommended procedure.

  2. #2
    Join Date
    Oct 2008
    Location
    Delhi, India
    Posts
    163

    Default

    spring:bind and form:hidden are mutually exclusive, you only need to use one of them. There is no recommended procedure per se but from my personal experience i'd say use form tags because they keep the jsp clean.

    As for carrying data through your command object, it depends on what you're trying to do. If you don't want the user to see the data being carried, use form:hidden.

Posting Permissions

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