[opencms-dev] Custom param for a singleFile
enrarjcob at alum.us.es
enrarjcob at alum.us.es
Thu Mar 6 15:10:11 CET 2008
Hi,
I'm trying to read a xml content without using patterns, this an extract of my code:
for (int i = 0; i < navElements.size(); i++) {
CmsJspNavElement nav = (CmsJspNavElement)navElements.get(i);
String resName = nav.getResourceName();
if(nav.isFolderLink() && oldLevel!=-1){
result.append("\""+nav.getParentFolderName()+nav.getFileName()+"\"");
%>
<cms:contentload collector="singleFile"
param="<%=nav.getResourceName()%>"
editable="true">
<div class="elemento">
<cms:contentshow element="Title" />
<cms:contentshow element="Text" />
</div>
</cms:contentload>
<%
} %>
When I execute it, there is an error:
Error /WEB-INF/jsp/offline/sites/default/ER/recorrido.jsp(44,2) According to TLD or attribute directive in tag file, attribute param does not accept any expressions
I think, I cant use this expresion in "param", so How can i do that then?
Thanxs!
More information about the opencms-dev
mailing list