import javax.servlet.*; import javax.servlet.http.*; import java.io.*; public class Servlet1 extends HttpServlet { public void doGet(HttpServletRequest request, HttpServletResponse response) throws IOException { //~ request.setCharacterEncoding("UTF-8"); response.setContentType("text/html; charset=UTF-8"); PrintWriter out = response.getWriter(); java.util.Date today = new java.util.Date(); out.println("\n\n\n" + "\n\n" + "\n" + "

Első servlet

\n" + today + "\n" + "\n"); } }