@@ -0,0 +1,520 @@
+import java.io.*;%0Aimport javax.servlet.*;%0Aimport javax.servlet.http.*;%0A%0Apublic class HelloWorld extends HttpServlet %7B%0A%0A%09%09private String message;%0A%0A%09%09public void init() throws ServletException%0A%09%09%7B%0A%09%09%09%09message = %22Hello World%22;%0A%09%09%7D%0A%0A%09%09public void doGet(HttpServletRequest request,HttpServletResponse response) throws ServletException, IOException%0A%09%09%7B%0A%09%09%09%09response.setContentType(%22text/html%22);%0A%09%09%09%09PrintWriter out = response.getWriter();%0A%09%09%09%09out.println(%22%3Ch1%3E%22 + message + %22%3C/h1%3E%22);%0A%09%09%7D%0A  %0A%09%09public void destroy()%0A%09%09%7B%0A%0A%09%09%7D%0A%7D%0A

initialize java servlet