zoukankan      html  css  js  c++  java
  • org.apache.jasper.JasperException: /WEB-INF/views/modules/goodMan/orderList.jsp (line: [30], column: [82]) Attribute qualified names must be unique within an element

    原因:标签中的属性重复!

    比如下面是我的错误:

    下面的第三行,我粗心的为<form:form>标签写成了两个action属性,所以会提示:Attribute qualified names must be unique within an element

    其中的element指的是<form:form>                         而 Attribute 指的是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="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>

    更正之后

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

    千万不要看见这个错误之后,误以为是自己bean的属性写重复了,如果是bean属性写重复了,并不会出现问题

    证明如下

  • 相关阅读:
    memory addresses
    ddt ddl dml
    PHP Architecture
    disk_free_space
    SAPI
    Simple Mail Transfer Protocol
    AllowOverride None
    function &w(){}
    The History of Operating Systems
    are not called implicitly
  • 原文地址:https://www.cnblogs.com/isme-zjh/p/12652639.html
Copyright © 2011-2022 走看看