[opencms-dev] jsp and html page
Jens Rickhoff
jens at visualteam.de
Tue Aug 12 13:48:01 CEST 2003
jsp and html pageHi Yendung,
try using
<%=cms.include(filename) %>
instead. cms is a CmsJspActionElement object.
Hope that helps. I think the cms tags are evaluated before the JSP code is
executed.
Correct me if I'm wrong.
Cheers,
Jens
----- Original Message -----
From: Nguyen La Yen Dung
To: opencms-dev at opencms.org
Sent: Tuesday, August 12, 2003 1:07 PM
Subject: RE: [opencms-dev] jsp and html page
Hi,
I don't know if it is correct or not, but it only works with
<cms:include file="mypage.html" />
If any one knows the reason, please explain me. Thanks.
Another problem I've met is: I don't want to hardcode the file name, I want
to use a String variable here,
but <cms:include file="<%= filename %>" /> will raise an exception File not
found.
I see the value of <%= filename %> doesnot parse.
Why?
Please help me.
Yendung
-----Original Message-----
From: Nguyen La Yen Dung
Sent: 12 August 2003 11:36
To: opencms-dev at opencms.org
Subject: [opencms-dev] jsp and html page
Hi,
I meet a problem with <jsp:include> tag. Please help.
I create a simple html page in Opencms (mypage.html):
<![CDATA[
Hello
]]>
In jsp file, I use
<jsp:include page="mypage.html" flush="true"/>
Run this jsp, an empty page is shown.
What's wrong?
Thank you,
Yendung
More information about the opencms-dev
mailing list