- This topic has 3 replies, 3 voices, and was last updated 15 years, 9 months ago by Loyal Water.
-
AuthorPosts
-
geek.shrekMemberHi,
I’m not sure if this is the right place to ask about “taglib”.
I’m trying to create a dynamic web site using XSLT and JSP.
note: I have my jar already in the build path.I need to put the below in web.xml
<taglib>
<taglib-uri>http://jakarta.apache.org/taglibs/xsl-1.0</taglib-uri>
<taglib-location>/WEB-INF/taglibs-xsl.tld</taglib-location>
</taglib>here’s my web.xml
<?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” version=”2.4″ xsi:schemaLocation=”http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd”>
<taglib>
<taglib-uri>http://jakarta.apache.org/taglibs/xsl-1.0</taglib-uri>
<taglib-location>/WEB-INF/taglibs-xsl.tld</taglib-location>
</taglib>
<welcome-file-list>
<welcome-file>index.jsp</welcome-file>
</welcome-file-list>
</web-app>and I have this error:
cvc-complex-type.2.4.a: Invalid content was found starting with element ‘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”:filter-mapping, “http://java.sun.com/xml/ns/j2ee”:listener, “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”:login-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”:ejb-ref, “http://java.sun.com/xml/ns/j2ee”:ejb-local-ref, “http://java.sun.com/xml/ns/j2ee”:service-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”:message-destination-ref, “http://java.sun.com/xml/ns/j2ee”:message-destination, “http://java.sun.com/xml/ns/j2ee”:locale-encoding-mapping-list}’ is expected. RealTimeApp/WebRoot/WEB-INF web.xml line 14 1197436738119 277282Can anyone tell me what did I do wrong? any solutions?
Loyal WaterMemberMoving to Off Topic >> Software Development.
shaibanMember<taglib> tag is deprecated in 2.4 servlets
Loyal WaterMember<taglib> tag is deprecated in 2.4 servlets
Thank you for pointing this out.
-
AuthorPosts