---
title: "jsp Attribute qualified names must be unique within an element"
author: "zps_77"
date: "2013-06-19T16:13:40Z"
tags: []
slug: "jsp-attribute-qualified-names-must-be-unique-within-an-element"
draft: false
lastmod: "2013-06-19T16:13:40Z"
id: 1889272
url: "https://geven7.iteye.com/blog/1889272"
---

jsp页面报:
org.apache.jasper.JasperException: /XXX/XXX.jsp Attribute qualified names must be unique within an element
    org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:41)
    org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:407)
    org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:88)....
 
原因:页面一个struts标签中定义了两个id属性的(工具没提示).
tomcat6正常，解析后取第二个id的值
 
如果非struts标签,页面解析后只取第一个属性
 
 
jsp(97,87) The JSP specification requires that an attribute name is preceded by whitespace
 
原因: struts标签 属性 之间要有空格

以上文章是来至http://nassir.iteye.com/blog/1012600
然后看了我这边的问题是 多了个同样的属性。总的来说应该是struts标签属性的问题。