Open the new index.jsp file
located in the WebContent folder
and add the code shown in bold in the following code example:
<%@ page language="java" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1"%>
<%@ taglib prefix="f" uri="http://java.sun.com/jsf/core"%>
<%@ taglib prefix="h" uri="http://java.sun.com/jsf/html"%>
<%@ taglib uri="http://www.ilog.com/jviews/tlds/jviews-diagrammer-faces.tld" prefix="jvdf" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Insert title here</title>
</head>
<body>
<f:view>
<h:form id='jviewsForm'>
<jvdf:diagrammerView id='diagrammer'
style="width:500px;height:300px"
data="/genealogy.idpr" />
</h:form>
</f:view>
</body>
</html>
The component <jvdf:diagrammerView>
enables
you to show the diagram produced with JViews Diagrammer. The data
attribute
of this component references a JViews Diagrammer project file. Note also that <jvdf:diagrammerView>
must
be inserted with in a <h:form>
component.