03 2012 档案
摘要:1 package com.sprying; 2 import java.io.IOException; 3 import java.io.PrintWriter; 4 5 import javax.servlet.http.HttpServlet; 6 import javax.servlet.http.HttpServletRequest; 7 import javax.servlet.http.HttpServletResponse; 8 9 /**10 *第三种方法开发servlet11 *通过继承HttpServlet,12 */13 public class HttpE...
阅读全文
摘要:package com.sprying; import java.io.PrintWriter;import javax.servlet.GenericServlet;import javax.servlet.ServletRequest;import javax.servlet.ServletResponse; /** *第二种方法开发servlet, *继承GenericServlet,只要重写Service方法 */ public class GenericExample extends GenericServlet { /** * */ priva...
阅读全文
摘要:package com.sprying;import javax.servlet.Servlet;import java.io.IOException;import java.io.PrintWriter;import javax.servlet.ServletConfig;import javax.servlet.ServletException;import javax.servlet.ServletRequest;import javax.servlet.ServletResponse;/***第一种方法开发servlet,*使用实现servlet接口方式实现,implements Se
阅读全文