[opencms-dev] A simple question for help

polysoft contact contact_polysoft at hotmail.com
Mon May 26 03:25:02 CEST 2003


As a beginner, I am trying to make my first template work, I just make some 
small modification based on the howto.jsp, following is my code:

<%@ page session="false" %>
<%@ taglib prefix="cms" uri="http://www.opencms.org/taglib/cms" %>
<!doctype html public "-//W3C//DTD HTML 4.01 Transitional//EN">
<title><cms:property name="title" escapeHtml="true" /></title>
<meta HTTP-EQUIV="CONTENT-TYPE" CONTENT="text/html; CHARSET=<cms:property 
name="content-encoding" default="ISO-8859-1" />">
<link type="text/css" rel="stylesheet" 
<h2>My first template head</h2>
<!-- Main pagebody starts here -->
<cms:include element= "body"/> 
<!--Main pagebody ends here -->
<h2>My first template foot</h2>

Beside the .css file name , I change nothing. But when I use this template, 
I got following error:

[jsptemplate] ??? com.opencms.core.CmsException: 0 Unknown exception. 
Detailed error: [CmsJspTemplate] Error while reading JSP 
com.opencms.core.CmsException: 2 Not found. Detailed error: 
/default/vfs/system/modules/polysoft/jsptemplates/polysoft_test1.jsp. . 
root cause was com.opencms.core.CmsException: 2 Not found. Detailed error: 

I found the problem is the following statement:
 <cms:include element= "body"/> 
If I remove this statement, it works. And the howto.jsp template also works 
in my system. I think I must make a very stupit mistake, but reaaly 
difficult for me to solve it. If somebody met the same problem, hope can 
help. Thansk a lot!


享用世界上最大的电子邮件系统― MSN Hotmail。  http://www.hotmail.com  

More information about the opencms-dev mailing list