refactor TestServlet; refactor index.jsp