1 23 24 package com.sun.enterprise.admin.server.core.servlet; 25 26 import javax.servlet.*; 28 import javax.servlet.http.*; 29 30 import java.io.IOException ; 32 import java.io.PrintWriter ; 33 34 35 40 41 public class ConnectServlet extends HttpServlet 42 { 43 44 public void doPost(HttpServletRequest request, HttpServletResponse response) 45 throws ServletException, IOException 46 { 47 doGet(request, response); 48 } 49 50 public void doGet(HttpServletRequest request, HttpServletResponse response) 51 throws ServletException, IOException 52 { 53 PrintWriter out; 54 String title = "Simple Servlet Output"; 55 56 response.setContentType("text/html"); 58 59 out = response.getWriter(); 61 62 out.println("<HTML><HEAD><TITLE>"); 63 out.println(title); 64 out.println("</TITLE></HEAD><BODY>"); 65 out.println("<H1>" + title + "</H1>"); 66 out.println("<P> This means you are connected to the Admin API Servlet Layer."); 67 out.println("</BODY></HTML>"); 68 out.close(); 69 } 70 } | Popular Tags |