<%@page contentType="text/vnd.wap.wml" session="true" import="java.util.Vector"%> <% //Obtain the client list, represented by an array of Vector objects, from the session. Vector cinfo[]; cinfo = (Vector[])session.getAttribute("ClientList"); %>

<% //Display Client names from cinfo[] if((cinfo.length <= 0) || (cinfo == null)) %> You Have No Clients To Visit Today <% else { /* The client list consists of a list of client names. Each name is a link to the ClientDetailsJSP. The URL for the link is constructed by appending the index within the client list array of vector objects. This is the index to the Vector object that this name is represented by. The ClientDetailsJSP uses this index to obtain the specific Vector object from the client list array and display the details of the specific client. Remember that the client list is stored in the session. */ for(int i=0;i
<%=cinfo[i].get(1)%> <% } } %>