<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<TITLE>jsp and html page</TITLE>
<META content="MSHTML 6.00.2600.0" name=GENERATOR></HEAD>
<BODY>
<DIV><SPAN class=959354410-12082003><FONT face=Arial color=#0000ff
size=2>Hi,</FONT></SPAN></DIV>
<DIV><SPAN class=959354410-12082003><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=959354410-12082003><FONT face=Arial color=#0000ff size=2>I
don't know if it is correct or not, but it only works
with</FONT></SPAN></DIV><SPAN class=959354410-12082003></SPAN><FONT
face=Tahoma><FONT face=Arial color=#0000ff size=2></FONT><FONT face=Arial
color=#0000ff size=2></FONT>
<DIV><BR><FONT size=2><SPAN class=959354410-12082003><FONT face=Arial
color=#0000ff><cms:include file="mypage.html"
/></FONT></SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN
class=959354410-12082003></SPAN></FONT> </DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN class=959354410-12082003>If any
one knows the reason, please explain me. Thanks.</SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN
class=959354410-12082003></SPAN></FONT> </DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN
class=959354410-12082003>Another problem I've met is: I don't want to hardcode
the file name, I want to use a String variable here,</SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN
class=959354410-12082003></SPAN></FONT> </DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN class=959354410-12082003>but
<cms:include file="<%= filename %>" /> will raise an exception File
not found.</SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN
class=959354410-12082003></SPAN></FONT> </DIV>
<DIV><FONT size=2><SPAN class=959354410-12082003><FONT face=Arial
color=#0000ff>I see the value of <%= filename %> doesnot
parse.</FONT></SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN
class=959354410-12082003></SPAN></FONT> </DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN class=959354410-12082003>Why?
</SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN
class=959354410-12082003></SPAN></FONT> </DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN class=959354410-12082003>Please
help me.</SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN
class=959354410-12082003></SPAN></FONT> </DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN
class=959354410-12082003>Yendung</SPAN></FONT></DIV>
<DIV><FONT size=2><SPAN class=959354410-12082003><FONT face=Arial
color=#0000ff> </DIV>
<DIV><BR></DIV></FONT></SPAN></FONT>
<DIV><FONT size=2><SPAN class=959354410-12082003></SPAN></FONT> </DIV>
<DIV><FONT size=2><SPAN class=959354410-12082003></SPAN></FONT> </DIV>
<DIV><FONT size=2><SPAN class=959354410-12082003> </SPAN>-----Original
Message-----<BR><B>From:</B> Nguyen La Yen Dung <BR><B>Sent:</B> 12 August 2003
11:36<BR><B>To:</B> opencms-dev@opencms.org<BR><B>Subject:</B> [opencms-dev] jsp
and html page<BR><BR></DIV></FONT></FONT>
<BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px"><BR>
<P><FONT size=2> Hi,</FONT> </P>
<P><FONT size=2> I meet a problem with <jsp:include> tag. Please
help.</FONT> </P>
<P><FONT size=2> I create a simple html page in Opencms
(mypage.html):</FONT> </P>
<P><FONT size=2> <![CDATA[ </FONT><BR><FONT size=2> Hello</FONT>
<BR><FONT size=2> ]]></FONT> </P><BR>
<P><FONT size=2> In jsp file, I use</FONT> </P>
<P><FONT size=2><jsp:include page="mypage.html" flush="true"/></FONT>
</P>
<P><FONT size=2> Run this jsp, an empty page is shown.</FONT> </P>
<P><FONT size=2> What's wrong?</FONT> </P>
<P><FONT size=2></FONT> <BR><FONT size=2>Thank you,</FONT> </P>
<P><FONT size=2> Yendung</FONT> </P></BLOCKQUOTE></BODY></HTML>