0
我是新來的JSP,使用Eclipse,並試圖剛剛開始使用模板。我已經將template.tld導入到WebContent/WEB-INF/tlds中。 指南:http://www.javaworld.com/jw-09-2000/jw-0915-jspweb.htmlJSP模板 - 無法加載模板的TLD條目:插入
當我運行test.jsp的文件,我得到這個錯誤:
org.apache.jasper.JasperException: /test.jsp(3,0) Unable to load tag handler class "tags.templates.InsertTag" for tag "template:insert"
我試圖尋找谷歌,但我無法找到一個解決方案。任何幫助將不勝感激!
template.jsp
<%@ taglib uri='/WEB-INF/tlds/template.tld' prefix='template' %>
<html><head><title><template:get name='title'/></title></head>
<body>
Welcome!<br />
<template:get name='content'/>
</body></html>
test.jsp的
<%@ taglib uri='/WEB-INF/tlds/template.tld' prefix='template' %>
<template:insert template='/template.jsp'>
<template:put name='content' content='this is our website'/>
</template:insert>