Java Reference
In-Depth Information
L ISTING 21.3
index.jsp
<html>
<head>
<title>Sams Online Directory</title>
</head>
<body bgcolor=”#FFFFFF”>
<table width=”100%” border=”0”>
<tr>
<td colspan=”2”>
<jsp:include page=”titlebar.jsp” flush=”true” />
</td>
</tr>
<tr>
<td width=”75”><%@ include file=”navigation.jsp” %></td>
<td valign=”top” >
<div align=”center”>
<b>Welcome to the Sams Online Directory</b>
</div>
</td>
</tr>
</table>
</body>
</html>
Directory View
The Directory View will be represented by the file directory.jsp . It will display the current
contents of the directory server. An image of the Directory View is in Figure 21.5.
The source for the Directory View is in Listing 21.4.
L ISTING 21.4
directory.jsp
<%@ page import=”LDAPObject” %>
<%@ page import=”java.util.*” %>
<jsp:useBean id=”directory” scope=”request” class=”java.util.Vector” />
<html>
<head>
<title>Sams Online Directory</title>
</head>
<body bgcolor=”#FFFFFF”>
<table width=”100%” border=”0”>
<tr>
Search WWH ::




Custom Search