including an HTML file, within an HTML file, within a JSP file?! 500 points.
Posted on 2007-10-04
firstly, apologies for the no doubt very poor description of my problem, i'm playing around with jsp for the very first time, so really don't know what i'm talking about! here goes...
i have an index.html file that includes a header html file, like this:
the header.html file itself includes another html file, like this:
when i view index.html, everything is fine, and it looks exactly as it should. the problem comes when i then try to do the same on a .jsp page. for example, if i then create index.jsp and include the header file like this:
<jsp:include page="header.html" />
it includes the content of header.html BUT NOT the contents of navbar.html. i can only suspect that it's because i am then using the "#include virtual" method in a jsp page.
so my question is this - without changing navbar.html or header.html (i really need them to stay the same as i use them across all my html files without any problem) how can i include these files in a jsp page?