Results 1 to 3 of 3

Thread: <form:form tag doesn't get the vaule of 'name' and 'id' attribute

Hybrid View

  1. #1

    Exclamation <form:form tag doesn't get the vaule of 'name' and 'id' attribute

    I'm using the form tag this way:
    Code:
    <form:form name="myForm" action="post">
    
    </form:form>
    The value of 'action' gets passed into the tag, but not 'name', here's the output html I got
    Code:
    <form id="null" name="null" method="post" name="myForm">
    </form>
    I think this issue should probably be reported

  2. #2
    Join Date
    Feb 2006
    Location
    Arlington, VA, USA
    Posts
    194

    Default

    Actually, it seems that "name" did get passed into the tag--your example has the name attribute listed twice. But if "name" got duplicated, perhaps *that* is the JIRA issue that would need to be entered.

    Still I think instead of "name", you need to be using commandName="myForm" to refer to your command bean. What are you using a "name" attribute for?

    Glen

  3. #3

    Post For Javascript

    I have to specify the 'name' attribute because I have a Javascript, I have
    Code:
    document.forms['invoicedInterviewForm'].dateSubmitted...
    in my javascript

Posting Permissions

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