Struts 2 JSP (155, 69) attribute qualified names must be unique within an element

Source: Internet
Author: User

Today, it is really annoying to refactor a project... Look at the big head, alas .... There was a problem. There was no problem with the local test. An exception occurred when publishing to the remote server, which was very strange.

The environment is as follows:

OS: RHEL 5.2

Web Server (local): tomcat6.0.18

Web Server (remote): tomcat-7.0.21


Exception information:

Exception:

JSP (155, 69) attribute qualified names must be unique within an element

It runs normally in Tomcat 6, but is abnormal in Tomcat 7.

After inspection, we found that:

155 the line code is as follows:

<S: Select label = "location_name" name = "location_name" id = "location_name" id = "location_name ".....

Solution:

Two Duplicate IDs, cups, and duplicates are deleted and re-released. Everything works normally.

Really careless coder, alas... It took me half an hour to solve this problem. Cup!

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.