一、认识web.xml
NetBeans4.1自动生成的web.xml与之前常见的很不同
nb4.1:
<?xml version="1.0" encoding="UTF-8"?>
<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">
<jsp-config>
<taglib>
<taglib-uri>http://java.sun.com/jstl/core</taglib-uri>
<taglib-location>/WEB-INF/tlds/c.tld</taglib-location>
</taglib>
</jsp-config>
</web-app>
非nb4.1:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" "http://java.sun.com/dtd/web-app_2_3.dtd">
<web-app>
<taglib>
<taglib-uri>http://java.sun.com/jstl/core</taglib-uri>
<taglib-location>/WEB-INF/tlds/c.tld</taglib-location>
</taglib>
</web-app>
两份重要的参考(初次见面,不大习惯,看得有点昏):
web-app_2_4.xsd [url]http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd[/url]
jsp_2_0.xsd [url]http://java.sun.com/xml/ns/j2ee/jsp_2_0.xsd[/url]
[size=18][color=orange]j2ee1.5也在制定中了吧?有种赶不上的感觉。
目前的project还是j2ee1.3的。使用NetBeans4.1的时候,default为j2ee1.4.。才恍然大悟:上述两份web.xml的差异,大概是由于二者分别应用于J2EE1.4和J2EE1.3[/color][/size]
刚刚发现Java 2 Platform, Enterprise Edition 5.0 (J2EE 5.0) Specification的Early Draft Review已经诞生[url]http://jcp.org/aboutJava/communityprocess/edr/jsr244/index.html[/url]
NetBeans4.1自动生成的web.xml与之前常见的很不同
nb4.1:
<?xml version="1.0" encoding="UTF-8"?>
<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">
<jsp-config>
<taglib>
<taglib-uri>http://java.sun.com/jstl/core</taglib-uri>
<taglib-location>/WEB-INF/tlds/c.tld</taglib-location>
</taglib>
</jsp-config>
</web-app>
非nb4.1:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" "http://java.sun.com/dtd/web-app_2_3.dtd">
<web-app>
<taglib>
<taglib-uri>http://java.sun.com/jstl/core</taglib-uri>
<taglib-location>/WEB-INF/tlds/c.tld</taglib-location>
</taglib>
</web-app>
两份重要的参考(初次见面,不大习惯,看得有点昏):
web-app_2_4.xsd [url]http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd[/url]
jsp_2_0.xsd [url]http://java.sun.com/xml/ns/j2ee/jsp_2_0.xsd[/url]
[size=18][color=orange]j2ee1.5也在制定中了吧?有种赶不上的感觉。
目前的project还是j2ee1.3的。使用NetBeans4.1的时候,default为j2ee1.4.。才恍然大悟:上述两份web.xml的差异,大概是由于二者分别应用于J2EE1.4和J2EE1.3[/color][/size]
刚刚发现Java 2 Platform, Enterprise Edition 5.0 (J2EE 5.0) Specification的Early Draft Review已经诞生[url]http://jcp.org/aboutJava/communityprocess/edr/jsr244/index.html[/url]