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.

52 lines
1.8 KiB

  1. <%@ page info = "addressList.jsp - generate a table of addresses" %>
  2. <%! static String pageTitle = "Address List"; %>
  3. <%@ taglib uri = "include/db-taglib.tld" prefix = "db" %>
  4. <%@ include file = "include/sessionHeader.jsp" %>
  5. <%@ include file = "include/pageHeader.jsp" %>
  6. <body <%=backgroundColor%>>
  7. <div class="head">
  8. <table <%=listWidth%> class="hidden">
  9. <tr class="hidden">
  10. <td><b class="title">Address List</b><td>
  11. <td>
  12. <form method="get" action="getData" style="float: right">
  13. <b class="label">Search:</b>
  14. <input type="text" name="filter" size=20 />
  15. </form>
  16. </td>
  17. </tr>
  18. </table>
  19. </div>
  20. <div class="tabular">
  21. <table <%=listWidth%>>
  22. <!-- table header -->
  23. <th style="width: 33%"><a href="/getList?orderBy=name">Name</a></th>
  24. <th style="width: 34%">Street</th>
  25. <th style="width: 15%"><a href="/getList?orderBy=city">City</a></th>
  26. <th style="width: 5%"><a href="/getList?orderBy=state">ST</a></th>
  27. <th style="width: 7%"><a href="/getList?orderBy=zipcode">Zip</a></th>
  28. <th style="width: 6%">+4</th>
  29. <!-- table data -->
  30. <db:addresslist><tr class="<%=shade%>">
  31. <td><a href="/getDetail?id=<%=id%>"><%=name%></a></td>
  32. <td><%=street%></td>
  33. <td><a href="/getList?city=<%=city%>&state=<%=state%>"><%=city%></a></td>
  34. <td><a href="/getList?state=<%=state%>"><%=state%></a></td>
  35. <td><%=zip%></td>
  36. <td><%=plus4%></td>
  37. </tr>
  38. </db:addresslist></table>
  39. </div>
  40. <!-- page footer -->
  41. <div class="foot">
  42. Session ID: <%= session.getId() %><br>
  43. Session is new: <%= session.isNew() %><br>
  44. Session variables:
  45. <% java.util.Enumeration sess = session.getAttributeNames();
  46. while(sess.hasMoreElements()) {
  47. out.print(sess.nextElement() + " ");
  48. }
  49. %>
  50. </div>
  51. </body>
  52. </html>