[opencms-dev] displaying a list of html articles

GV kpkp at gmx.net
Wed Jun 29 22:11:31 CEST 2005


Hi,

I have the following situation:

- a directory is holding a list of HTML encoded articles
- a JSP should be able to display in one page all of the above articles in a 
serial way

I created the following JSP:

-----------------------------
<%@ 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" />">


</head>
<body>
<!-- Main page body starts here -->
<br>
<br>
<cms:contentload collector="${property.collector}" 
param="${property.HtmlTexts}article_${number}.html|11" editable="true" />
<br>


</body>
</html>
------------------------------------------

I also defined the collector property as "allInSubTree" and the xml-content 
property as "HtmlTexts".

Now, when I run the above JSP page I get following error:

Error reading file "/sites/default/xmlcontent/widgetdemo/html/". Given filter 
was "org.opencms.file.CmsResourceFilter at 818737".

What am I missing here?

Thanks

George



More information about the opencms-dev mailing list