<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
<html>
<head>
<title>DDJ Article Lister</title>
<meta http-equiv="Content-Type" content="text/html; 
  charset=iso-8859-1">
<meta name="Author" content="Paul Tremblett">
<meta name="GENERATOR" content="Mozilla/4.51 [en] (X11; I; 
  Linux 2.2.5-15 i586) [Netscape]">
</head>
<body bgcolor="#FFFFFF">
<%@ page language="java" import="ddj.*" %>
<%@ page info="DDJ Article Lister V1.0" %>
<%@ page errorPage="errorpage.jsp" %>
<jsp:useBean id="articles" scope="request" 
  class="ddj.Articles" />
<%
  articles.processRequest(request);
  String month = articles.getMonth();
  String[][] articleList = articles.getArticles(month);
  if (articleList.length == 0) {
%>
<%@ include file = "NoData.jsp" %>
<%
  }
  else {
%>
<center>
<table cellspacing=0 cols=2 width="80%">
<caption><b><font face="Arial, Helvetica"><font size=+1>
Dr. Dobb's Articles For The Month Of
<%= month %>
1999
</font></font></b>
</caption>
    <%! String[] alternatingColors = {"#ffff99", "#ffcc99"}; %>
<%
    for (int i = 0; i < articleList.length; ++i) {
%>
<tr bgcolor=
<%=alternatingColors[i % 2] %>
>
<td>
<b>
<%= articleList[i][0] %>
</b>
</td>
<td>
<b>
<%= articleList[i][1] %>
</b>
</td>
</tr>
<%
    }
%>
</table>
<form method=get action="ArticleLister.html">
<input type=submit name="submit" value="BACK">
</form>
</center>
<%
  }
%>
</body>
</html>
