[opencms] [opencms-dev] (6b3) contentload taglib + scriptlet --> SOLVED

Jorge González informatico at hotelparadisepark.com
Mon Jun 13 18:00:29 CEST 2005


Well, this doesn't seem to be very efficient, but here it goes...


----
<cmstag:contentload collector="${property.collector}" param="/contents|300"
editable="false">

<p>
<c:set var="actualResource">
	<cmstag:contentshow element="${opencms.filename}"/>
</c:set>
read from scriptlet 	<%=pageContext.getAttribute("actualResource")%>
</p>
<p>
read from taglib 		<c:out value="${actualResource}"/>
</p>

</cmstag:contentload>
----

Please report better solutions, because using this hack, the xml content is
read twice.

Thanks.




More information about the opencms-dev mailing list