Cause: The tag attributes repeat!
For example, here is my error:
The third line below, I was careless <form: form> tag written two action attribute, it will prompt: Attribute qualified names must be unique within an element
Wherein the element refers <form: form> and Attribute refers action
<div class="tab_pane fade in active" id="showList"> <form:form action="searchForm" modelAttribute="order" action="${ctx}/sys/order/" method="post" class="breadcrumb form search"> <ul class="ul-form"> <li> <label for="> Order number </ label>"orderId <form:input path="orderId" htmlEscape="false" maxlength="15" class="input-medium"/> </li> <li> <label for="goodId">商品编号</label> <form:input path="goodId" htmlEscape="false" maxlength="15" class="input-medium"/> </li> <li> <label for="shopperName">客户名称</label> <form:input path="shopperName" htmlEscape="false" maxlength="15" class="input-medium"/> </li> <%-- <li> <label for="saleTime">交易时间</label> <form:input path="saleTime" htmlEscape="false" maxlength="15" class="input-medium"/> </li> --%> </ul> <li class="btns"><input id="btnSubmit" class="btn btn-primary" type="submit" value="查询"></li> <li class="clearfix"></li> </form:form>
After correction
<div class="tab_pane fade in active" id="showList"> <form:form id="searchForm" modelAttribute="order" action="${ctx}/sys/order/" method="post" class="breadcrumb form search"> <ul class="ul-form"> <li> <label for="orderId">订单编号</label> <form:input path="orderId" htmlEscape="false" maxlength="15" class="input-medium"/> </li> <li> <label for="goodId">商品编号</label> <form:input path="goodId" htmlEscape="false" maxlength="15" class="input-medium"/> </li> <li> <label for="shopperName">客户名称</label> <form:input path="shopperName" htmlEscape="false" maxlength="15" class="input-medium"/> </li> <%-- <li> <label for="saleTime">交易时间</label> <form:input path="saleTime" htmlEscape="false" maxlength="15" class="input-medium"/> </li> --%> </ul> <li class="btns"><input id="btnSubmit" class="btn btn-primary" type="submit" value="查询"></li> <li class="clearfix"></li> </form:form>
After you do not see this error, mistaking their own bean properties wrote repeat, if it is repeated write bean property, and the problem does not occur
Prove the following