I think you can do this like this (it worked for me before I switched
from jsp to facelets):
On your main page:
<jsp:include page="/pages/header.jsp"/>
On header.jsp:
========================
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
<f:subview>
....
</f:subview>
========================
I left the body tags on the main page.
-Mike
On 10/10/05, Rafael Nami <[EMAIL PROTECTED]> wrote:
> I have a header.jsp and a footer.jsp, that have to be in a main.jsp.
> If I add a <body> tag in the header.jsp and closes it with a </body> in the
> footer.jsp, and include the header.jsp before the f:view, and finally
> include the footer.jsp after the </f:view>, it throws a exception.
> What's the correct approach? I do the includes inside a <f:subview> on the
> main.jsp? PS - I don't want to use Tiles or Sitemesh, because it's a very
> tiny project.
>
> Thanks in advance
>
> Rafael Mauricio Nami