AW: [opencms-dev] Include banner in pages (content outside VFS)
Manuel Wallnoefer
mfw at msk-informatik.at
Wed Sep 21 12:12:48 CEST 2005
Hi , thx for your help.
I tried the version from joe, but it didnt work, because the response of
this line <%=httpGet("Path to my URL") %> was NULL.
Afterwards I tried your version Marcus, and it works fine with the
<c:import/> tag.
But I have again one problem.
The URL I want to include must be dynamically, and I get it into a String
variable at runtime.
But if I use the <c:import /> tag like this: <c:import url="<%=myURL%>"/>
This doesnt work.
The error I get is like this:
/WEB-INF/jsp/offline/sites/Claudio/test.jsp(9,0) According to TLD or
attribute directive in tag file, attribute url does not accept any
expressions
Can anybody help me to make my includes dynamically !!
Thx
~manuel
-----Ursprüngliche Nachricht-----
Von: opencms-dev-bounces at opencms.org
[mailto:opencms-dev-bounces at opencms.org] Im Auftrag von Marcus Popetz
Gesendet: Dienstag, 20. September 2005 16:12
An: The OpenCms mailing list
Betreff: Re: [opencms-dev] Include banner in pages (content outside VFS)
At 08:34 AM 9/20/2005, Joe Desbonnet wrote:
>However I suspect this is not what you need. If you want to grab the
>content of a URL and include it in your page, you can do so by
>creating a JSP file and using the following code fragment:
Check out the <c:import> tag of jstl too...it does this for you.
Here's a nice comparison of it vs jsp:include:
http://www.dummies.com/WileyCDA/DummiesArticle/id-2462.html
-mp
_______________________________________________
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