Hello,
I'm trying to get working prelude and coda elements from web.xml with JSF.
prelude.jspf should contain following code:
<?xml version="1.0" ?>
<jsp:root version="2.0"
xmlns:jsp="http://java.sun.com/JSP/Page"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:h="http://java.sun.com/jsf/html">
<jsp:directive.page contentType="text/html" errorPage="/errorpage.jsp"/>
<f:view>
<f:verbatim>
<![CDATA[<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">]]>
</f:verbatim>
<html xmlns="http://www.w3.org/1999/xhtml">
coda.jspf content is following:
</html>
</f:view>
</jsp:root>
This is from web.xml:
<web-app>
<display-name>myapp</display-name>
<servlet>
<display-name>FacesServlet</display-name>
<servlet-name>FacesServlet</servlet-name>
<servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
<load-on-startup>1</load-on-startup>
</servlet>
<servlet-mapping>
<servlet-name>FacesServlet</servlet-name>
<url-pattern>/myapp/*</url-pattern>
</servlet-mapping>
<jsp-config>
<jsp-property-group>
<display-name>myapp</display-name>
<url-pattern>*.jsp</url-pattern>
<el-ignored>false</el-ignored>
<scripting-invalid>false</scripting-invalid>
<is-xml>true</is-xml>
<include-prelude>/myapp/prelude.jspf</include-prelude>
<include-coda>/myapp/coda.jspf</include-coda>
</jsp-property-group>
</jsp-config>
</web-app>
Unfortunatelly, this is not working.
I don't know how should I set up content of <display-name>, <url-pattern>, <include-prelude> and <include-coda> elements of <jsp-property-group> to make this work.
Any suggestion ?
Thanks, Nedim