Hi
I have been trying to get some basic Turbine stuff working in JSP, with no real luck.
I have setup my TurbineResources properties file correctly (I think).
I have setup some basic test components as follows:
testjsp.jsp template
—--------------------------
<p> This is a test Jsp template </p>
default.jsp (as per given sample)
—-----------------------------------------------
<%@ page import = "org.apache.turbine.services.jsp.util.*" %>
<%@ page import = "org.apache.turbine.util.*" %>
<%@ page import = "java.util.*" %>
<%@ taglib uri='/WEB-INF/tlds/template.tld' prefix='turbine' %>
<jsp:useBean id="rundata" class="RunData" scope="request"/>
<jsp:useBean id="link" class="JspLink" scope="request"/>
<html>
<!--
A simple jsp layout
<a href="mailto:[EMAIL PROTECTED]">John D. McNally</a>
-->
<head>
<turbine:screen section="head" contextRelevant="false" />
</head>
<body<turbine:bodyAttributes />>
<table width="100%" border="0">
<tr>
<td>
<turbine:navigation template="top.jsp" />
</td>
</tr>
</table>
<table width="120" align="left" border="0">
<tr>
<td valign="top">
Some side<br>
links<br>
Home<br>
</td>
</tr>
</table>
<table width="480" border="0">
<tr>
<td>
<p><font color="#330000"><%= rundata.getMessageAsHTML()
%><br></font></p>
<turbine:screen section="body" />
</td>
</tr>
</table>
<br clear="all">
<table width="100%" border="0">
<tr>
<td>
<turbine:navigation template="bottom.jsp" />
</td>
</tr>
</table>
</body>
</html>
TestJsp.java class
—-------------------------
This extends BaseJspScreen and effectively has an empty doPerform method.
However, when I run this via url
http://localhost:8080/tests/servlet/turbine/template/TestJsp.jsp , I get the
following error:
Error: 500
Location: /tests/templates/app/layouts/default.jsp
Internal Servlet Error:
org.apache.jasper.JasperException: Unable to open taglibrary
/WEB-INF/tlds/template.tld : Parse Error in the tag library descriptor: Element type
"web-app" is not declared.
at
org.apache.jasper.compiler.JspParseEventListener.handleDirective(JspParseEventListener.java,
Compiled Code)
I am running TDK 2.1 under Tomcat 3.2 and JDK 1.2.2.
tia
Chris