一个最简单的servlet
发表于:2007-07-04来源:作者:点击数:
标签:
import
java.io.*;
import javax.servlet.*;
import javax.servlet.http.*;
1. public class FirstServlet extends HttpServlet {
2. public void doGet(
3. HttpServletRequest request, HttpServletResponse response)
4. throws ServletException, IOException {
5. PrintWriter out = response.getWriter();
6. out.println("The First Servlet Worked !");
}
}
原文转自:http://www.ltesting.net