import javax.servlet.*; import javax.servlet.http.*; import java.io.*; import java.sql.*; public class inimesed extends HttpServlet{ public void doGet(HttpServletRequest kysimus, HttpServletResponse vastus) throws IOException, ServletException{ vastus.setContentType("text/plain"); PrintWriter valja=new PrintWriter(vastus.getWriter()); valja.println("\n"+ "
"+ "Perenimi | "+ "Eesnimi | "+ "Tänav | "+ "Maja | "+ "Korter | "+ "
"+rs.getString("Perenimi")+" | \n"+ ""+rs.getString("Eesnimi")+" | \n"+ ""+rs.getString("Tanav")+" | \n"+ ""+rs.getString("Maja")+" | \n"+ ""+rs.getString("Korter")+" |