You are almost right. These XML formatted syntax should be case-senstive and you need get rid of some extra spaces. <jsp irective.page PageAttributes/> <jsp irective.include IncludeAttributes/> For Taglib directive, <jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" xmlns refix1="mytag" version="1.2"> .... </jsp:root>