JSP Addressbook app for VIP Express (circa Jun 2002)
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.
|
|
<%@ page info = "addressList.jsp - generate a table of addresses" %> <%! static String pageTitle = "Address List"; %> <%@ taglib uri = "include/db-taglib.tld" prefix = "db" %> <%@ include file = "include/sessionHeader.jsp" %> <%@ include file = "include/pageHeader.jsp" %> <body <%=backgroundColor%>> <div class="head"> <table <%=listWidth%> class="hidden"> <tr class="hidden"> <td><b class="title">Address List</b><td> <td> <form method="get" action="getData" style="float: right"> <b class="label">Search:</b> <input type="text" name="filter" size=20 /> </form> </td> </tr> </table> </div> <div class="tabular"> <table <%=listWidth%>> <!-- table header --> <th style="width: 33%"><a href="/getList?orderBy=name">Name</a></th> <th style="width: 34%">Street</th> <th style="width: 15%"><a href="/getList?orderBy=city">City</a></th> <th style="width: 5%"><a href="/getList?orderBy=state">ST</a></th> <th style="width: 7%"><a href="/getList?orderBy=zipcode">Zip</a></th> <th style="width: 6%">+4</th> <!-- table data --> <db:addresslist><tr class="<%=shade%>"> <td><a href="/getDetail?id=<%=id%>"><%=name%></a></td> <td><%=street%></td> <td><a href="/getList?city=<%=city%>&state=<%=state%>"><%=city%></a></td> <td><a href="/getList?state=<%=state%>"><%=state%></a></td> <td><%=zip%></td> <td><%=plus4%></td> </tr> </db:addresslist></table> </div> <!-- page footer --> <div class="foot"> Session ID: <%= session.getId() %><br> Session is new: <%= session.isNew() %><br> Session variables: <% java.util.Enumeration sess = session.getAttributeNames(); while(sess.hasMoreElements()) { out.print(sess.nextElement() + " "); } %> </div> </body> </html>
|