<%@page contentType="text/html"%> <%@page pageEncoding="UTF-8"%> <%-- zipcode.jsp --%> <%-- Generates an example document representing the results of an SQL query --%> <%-- As usual, import the classes in util (e.g., Date, String, etc.) --%> <%@page import="java.util.*"%> <%-- This class creates a db connection --%> <%@page import="uw.ischool.info340.labs.DbBaseConnect"%> <%-- This class does the work -- it extends the class DbBaseConnect --%> <%@page import="uw.ischool.info340.labs.ZipCode"%> <% /* Initialize the class that manages the database */ ZipCode db = new ZipCode(); db.init(); /* Get the results in XML and put it into the output stream */ String t = db.getZipCodesForCityAsXML("Boston"); %> <%=t%>