[opencms-dev] Which widget for including file in xml content

Thomas Maerz thomasmaerz at gmx.de
Wed Sep 14 11:15:31 CEST 2005


"Manuel Wallnoefer" <mfw at msk-informatik.at> writes:

> With <cms:contentshow element="myIncludefile"/> I get only the path to this
> file in my page but I want to include this page ( the content).

| <%@ taglib prefix="c" uri="http://java.sun.com/jstl/core" %>
| <c:set var="uri"><cms:contentshow element="myIncludefile"/></c:set>
| 
| <% String uri = pageContext.getAttribute( "uri" ); %>
| <%= cms.getContent( uri ) %>

See also

http://www.codedroids.com/javadocs/opencms/build_6_0_0/docs/api/org/opencms/jsp/CmsJspActionElement.html#getContent(java.lang.String)

http://www.codedroids.com/javadocs/opencms/build_6_0_0/docs/api/org/opencms/jsp/CmsJspActionElement.html#include(java.lang.String)


Regards,
Thomas




More information about the opencms-dev mailing list