2 Replies Latest reply on Jun 18, 2006 1:33 PM by javri28

    Problem with jsp:include

    javri28

      Hi guys,

      I'm trying to have a dynamic header on xhtml page.
      As I understand there is only one way to do it: jsp:include. BUT I CAN'T MAKE IT WORK!!!

      here, very simple example:

      registration.xhtml:

      <html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:jsp="http://java.sun.com/JSP/Page">

      <f:view>

      <jsp:include page="header_test.xhtml"/>

      </f:view>


      and header_test.xhtml:

      <html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:jsp="http://java.sun.com/JSP/Page">

      <f:subview id="header">
      <f:verbatim>
      HEADER XHTML
      </f:verbatim>
      </f:subview>


      No errors, nothing. jsp:include is just ignored. I can write <jsp:include page="WHAT_THE_HELL_IS_A_REASON"/> and there wil happen also nothing.

      Has anybody any idea?

      Thank's in advance