症状如下web.xml在Eclipse Helios上显示警告信息
index.html
index.htm
index.jsp
default.html
default.htm
default.jsp
sitemash
com.opensymphony.module.sitemesh.filter.ljdxh/psitemash
/*
短消息解码器
/we B- INF/sitemesh-decorator.TLD
sitemesh-page
/WEB-INF/sitemesh-page.tld
说明resourcepathlocationtype
CVC-complex-type.2.4.a : invalidcontentwasfoundstartingwithelement ' taglib '。
One of '{
' http://Java.sun.com/XML/ns/J2EE ' : description
' http://Java.sun.com/XML/ns/J2EE ' : display-name,
' http://Java.sun.com/XML/ns/J2EE ' : icon,
' http://Java.sun.com/XML/ns/J2EE ' : distributable,
' http://Java.sun.com/XML/ns/J2EE ' : context-param,
' http://Java.sun.com/XML/ns/J2EE ' : filter,
' http://Java.sun.com/XML/ns/J2EE ' :过滤器- mapping,
' http://Java.sun.com/XML/ns/J2EE ' :监听器,
' http://Java.sun.com/XML/ns/J2EE ' : servlet,
' http://Java.sun.com/XML/ns/J2EE ' : servlet-mapping
' http://Java.sun.com/XML/ns/J2EE ' : session-config,
' http://Java.sun.com/XML/ns/J2EE ' : mime-mapping,
' http://Java.sun.com/XML/ns/J2EE ' : welcome-file-list,
' http://Java.sun.com/XML/ns/J2EE ' : error-page,
' http://Java.sun.com/XML/ns/J2EE ' : JSP-config,
' http://Java.sun.com/XML/ns/J2EE ' : security-constraint,
' http://Java.sun.com/XML/ns/J2EE ' : log in-config,
' http://Java.sun.com/XML/ns/J2EE ' : security-role,
' http://Java.sun.com/XML/ns/J2EE ' : env-entry,
' http://Java.sun.com/XML/ns/J2EE ' : EJ B- ref,
' http://Java.sun.com/XML/ns/J2EE ' : EJ B- local-ref,
' http://Java.sun.com/XML/ns/J2EE ' :服务-ref,
' http://Java.sun.com/XML/ns/J2EE ' : resource-ref,
' http://Java.sun.com/XML/ns/J2EE ' : resource-env-ref,
' http://Java.sun.com/XML/ns/J2EE ' :消息目的地ref,
' http://Java.sun.com/XML/ns/J2EE ' :消息目的地,
' http://Java.sun.com/XML/ns/J2EE ' : locale-encoding-mapping-list } ' is expected。
web.XML/webtest/web content/we B- infline 41 XML APP
在jsp2.0和2.4版的DTD验证中,将taglib描述符放在描述符中的格式正确。
1 )将
2 )标签应按照标准放入jsp-config标签中。 如下所示。
/tags/struts-bean
/WEB-INF/lib/struts-bean.tld
/tags/struts-html
/WEB-INF/lib/struts-html.tld
/tags/struts-logic
/WEB-INF/lib/struts-logic.tld