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

Manuel Wallnoefer mfw at msk-informatik.at
Wed Sep 14 11:55:37 CEST 2005


Thanks a lot Thomas for your answer.

Now I tried your code snippet and I get the following exception:

Type mismatch: cannot convert from Object to String

Do you know what I am doing wrong ....

Thx

~manuel


-----Ursprüngliche Nachricht-----
Von: opencms-dev-bounces at opencms.org
[mailto:opencms-dev-bounces at opencms.org] Im Auftrag von Thomas Maerz
Gesendet: Mittwoch, 14. September 2005 11:16
An: The OpenCms mailing list
Betreff: Re: [opencms-dev] Which widget for including file in xml content

"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



_______________________________________________
This mail is send to you from the opencms-dev mailing list
To change your list options, or to unsubscribe from the list, please visit
http://mail.opencms.org/mailman/listinfo/opencms-dev





More information about the opencms-dev mailing list