Announcement Announcement Module
Collapse
No announcement yet.
Petclinic code doubt Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Petclinic code doubt

    dear all ,
    the followoing is extract of code of owner.jsp .the line of <FORM
    what is name=? used ?

    thanks in advance
    a.v
    ------------------


    <FORM method=GET action="<c:url value="/editPet.htm"/>" name="formEditPet<c:out value="${pet.id}"/>">
    <INPUT type="hidden" name="petId" value="<c:out value="${pet.id}"/>"/>
    <INPUT type="submit" value="Edit Pet"/>
    </FORM>
    <FORM method=GET action="<c:url value="/addVisit.htm"/>" name="formVisitPet<c:out value="${pet.id}"/>">
    <INPUT type="hidden" name="petId" value="<c:out value="${pet.id}"/>"/>
    <INPUT type="submit" value="Add Visit"/>
    </FORM>
    </TD>
    </TR>
    </TABLE>

  • #2
    what is name=? used ?
    If you mean why are the form named this way, the CVS log says "...tidy html to be more test friendly". I guess that's for tools like HttpUnit to identify different forms easily.

    Comment

    Working...
    X