Update MainServlet.java

these ads usable tmelplate