I am working with Java EE 7 in Intellij IDEA and trying to create and use a custom .tag file. I have followed this answer and created a wrapper.tag file in WEB-INF/tags :
<%@tag description="Simple Wrapper Tag" pageEncoding="UTF-8"%>
<html><body>
<jsp:doBody/>
</body></html>
And i have created a .jsp file in my web directory:
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@taglib prefix="t" tagdir="/WEB-INF/tags" %>
<t:wrapper>
<h1>Welcome</h1>
</t:wrapper>
But when loading the page I always one of two following errors:
- No tag "wrapper" defined in tag library imported with prefix "t"
- lang.ClassNotFoundException: org.apache.jsp.temptest_jsp
Note that my jsp file is called temptest.jsp. Thanks in advance