Не работают пользовательские теги jstl

Страница даже не запускается с пользовательскими тегами, в то же время когда я их убираю и добавляю другие( core) все работает отлично

jsp

 <%@ taglib uri="labtags" prefix="lt" %>
 <!DOCTYPE html>
 <html>
 <body>
 <lt:emptyTag/>
 </body>
 </html>

web.xml

<?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns="http://xmlns.jcp.org/xml/ns/javaee"
     xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
     xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee http://xmlns.jcp.org/xml/ns/javaee/web- 
     app_4_0.xsd"
     version="4.0">

<taglib>

    <taglib-uri>labtags</taglib-uri>
    <taglib-location>/WEB-INF/Custom.tld</taglib-location>

</taglib>

Custom.tld

<?xml version="1.0" encoding="UTF-8" ?>

    <taglib version="2.0"
    xmlns="http://java.sun.com/xml/j2ee"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee/web-jsptaglibrary_2_0.xsd">
<tlib-version>1.0</tlib-version>
<jsp-version>2.0</jsp-version>
<short-name>labtag</short-name>
<uri>http://dru.su</uri>

<tag>
    <name>emptyTag</name>
    <tag-class>javax.servlet.jsp.tagext.TagSupport</tag-class>
    <bodycontent>scriptless</bodycontent>
</tag>

LabTag

package test;

import javax.servlet.jsp.JspException;
import javax.servlet.jsp.JspWriter;
import javax.servlet.jsp.tagext.TagSupport;
import java.io.IOException;
import java.time.LocalDateTime;

public class LabTag extends TagSupport {
@Override
public int doStartTag() throws JspException {
    JspWriter out = pageContext.getOut();

    try {
        out.print(LocalDateTime.now());
        out.print("<br/>");
    } catch (IOException e) {
        throw new JspException(e);
    }

    return SKIP_BODY;
}

}


Ответы (0 шт):