<!DOCTYPE web-app
PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
"http://java.sun.com/dtd/web-app_2_3.dtd">前面加上
PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
"http://java.sun.com/dtd/web-app_2_3.dtd">前面加上
调试欢乐多
<!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>
<servlet>
<description>This is the description of my J2EE component</description>
<display-name>This is the display name of my J2EE component</display-name>
<servlet-name>Login_Confirm</servlet-name>
<servlet-class>haijiang.Login_Confirm</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>Login_Confirm</servlet-name>
<url-pattern>/Login_Confirm</url-pattern>
</servlet-mapping>
<servlet>
<servlet-name>StudentLoginSvlt</servlet-name>
<servlet-class>haijiang.StudentLoginSvlt</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>StudentLoginSvlt</servlet-name>
<url-pattern>/StudentLoginSvlt</url-pattern>
</servlet-mapping>
<!--end the servlet mapping -->
<!-- start the tag mapping -->
taglib>
<taglib-uri>/taglib/CurrentTimeTag.tld</taglib-uri>
<taglib-location>
/WEB-INF/taglib/CurrentTimeTag.tld
</taglib-location>
</taglib></web-app>
<taglib-location>
/WEB-INF/taglib/CurrentTimeTag.tld
</taglib-location>
</taglib>你以上的两个路径明显不对当然它说找不到了,改成:
<taglib-uri>/WEB-INF/taglib/CurrentTimeTag.tld</taglib-uri>
<taglib-location>/WEB-INF/taglib/CurrentTimeTag.tld</taglib-location>
</taglib>