Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6962175
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T15:37:32+00:00 2026-05-27T15:37:32+00:00

I am looking to find out the difference between the spring:bind and form:form tag

  • 0

I am looking to find out the difference between the spring:bind and form:form tag libraries when submitting a form.

A snippet of my JSP is as follows:

<form:form modelAttribute="testRulesForm">
....
<td>
    <form:checkbox path="rules[${counter.index}].isActive" value="rules[${counter.index}].isActive"/>
</td>
<td>
    <form:select path="rules[${counter.index}].leftCondition.name">
        <form:options items="${testRulesForm.ruleAttributes}" itemLabel="name" itemValue="name" />
    </form:select>
</td>
<td>
    <form:select path="rules[${counter.index}].operator">
        <form:options itemLabel="operator" itemValue="operator" />
    </form:select>
</td>
....

Seeing as I have my path variable specified and this will be bound to my modelAttribute, does this mean that I do not need spring:bind?

Thanks

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T15:37:32+00:00Added an answer on May 27, 2026 at 3:37 pm

    Normally you don’t need to use <spring:bind> if you already use form taglib.

    They do basically the same with respect to model attributes, but tags from form taglib also generate HTML form markup, whereas with <spring:bind> you need to generate markup yourself.

    The following code with form tags:

    <form:form modelAttribute = "foo">
        <form:input path = "bar" />
    </form:form>
    

    is similar to the following code with <spring:bind>:

    <spring:bind path = "foo">
        <form method = "get">
            <spring:bind path = "bar">
                <input name = "bar" value = "${status.displayValue}" />
            </spring:bind>
        </form>
    </spring:bind>
    

    <spring:bind> is useful when you need something customized, that cannot be achieved by form taglib.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

The DATEDIFF function allows to find out the dates difference between the two dates.
I am looking to find out if a web page has changed, I was
I'm looking for a way to find out the URL of a SWF using
I'm looking for a solution to find out about the MAC number of a
we are looking for a way to find out (not modify, just find out)
With jQuery, how do I find out which key was pressed when I bind
I'm looking to find alternatives to Solr from the Apache Software Foundation. For those
I'm looking to find a way to access the .net query string contained in
I'm looking to find records in a table that match a specific number that
I've looking to find a simple recommended minimal c++ makefile for linux which will

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.