2.4 web.xml validation not working right
I have the following start to my web.xml file which seems to be correct
according to Sun and OnJava articles that I've looked up:
<?xml version="1.0" encoding="ISO-8859-1"?>
<web-app xmlns="http://java.sun.com/xml/ns/j2ee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"
version="2.4">
Version 6 of IntelliJ shows a Red Error for the <web-app tag as follows:
"Element 'web-app' cannot have character , because the type's
content type is element-only"
Steve
请先登录再写评论。
You have some plain text in web.xml content and this does not match
web.xml schema (web-app_2_4.xsd)
Steve wrote:
--
Best regards,
Maxim Mossienko
IntelliJ Labs / JetBrains Inc.
http://www.intellij.com
"Develop with pleasure!"