[opencms-dev] A simple question for help
polysoft contact
contact_polysoft at hotmail.com
Mon May 26 03:25:02 CEST 2003
Hi,
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">
<html>
<head>
<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"
href="<cms:link>../resources/polysoft.css</cms:link>">
</head>
<body>
<h2>My first template head</h2>
<!-- Main pagebody starts here -->
<cms:include element= "body"/>
<!--Main pagebody ends here -->
<h2>My first template foot</h2>
</body>
</html>
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
/system/modules/polysoft/jsptemplates/polysoft_test1.jsp
com.opencms.core.CmsException: 2 Not found. Detailed error:
[com.opencms.file.mySql.CmsDbAccess]
/default/vfs/system/modules/polysoft/jsptemplates/polysoft_test1.jsp. .
root cause was com.opencms.core.CmsException: 2 Not found. Detailed error:
[com.opencms.file.mySql.CmsDbAccess]
/default/vfs/system/modules/polysoft/jsptemplates/polysoft_test1.jsp.
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!
polysoft
_________________________________________________________________
享用世界上最大的电子邮件系统― MSN Hotmail。 http://www.hotmail.com
More information about the opencms-dev
mailing list