Announcement Announcement Module
Collapse
No announcement yet.
<form:form tag doesn't get the vaule of 'name' and 'id' attribute Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • <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
    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

    Comment


    • #3
      For Javascript

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

      Comment

      Working...
      X