TOC PREV NEXT INDEX

Turning JSP into JSP Document


JSP pages (unlike the more recent JSP Document specification) are not required to be well-formed XML documents. ICEfaces requires well-formed XML documents, so we need to make some modifications to our JSP page to align it with the JSP Document specification.

1. Change the file extension of the timezone.jsp file from .jsp to .jspx. This is the first step in converting the web page to a JSP Document (XML-compatible JSP). The .jspx extension identifies the file as an XML-compliant JSP page and allows us a bit of flexibility with our servlet mappings.
2. Remove the JSP taglib directives and declare them using xml namespaces in the JSF <f:view> element:
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
 
<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
 
becomes:
<f:view xmlns:f="http://java.sun.com/jsf/core" 
 
        xmlns:h="http://java.sun.com/jsf/html">
 

If the page consists of well-formed JSF and XHTML tags, this is the only change necessary to convert the page to JSP Document.



Copyright 2005-2009. ICEsoft Technologies, Inc.
TOC PREV NEXT INDEX