[opencms-dev] jsp and html page

Nguyen La Yen Dung dny at sdcgrp.com
Tue Aug 12 13:21:01 CEST 2003


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 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://webmail.opencms.org/pipermail/opencms-dev/attachments/20030812/7302bb61/attachment.htm>


More information about the opencms-dev mailing list