标签:public png 目录 安装 except code ssi 代码 1.5.0
1 <aw:import>java.io.IOException</aw:import> 2 <aw:import>java.io.PrintWriter</aw:import> 3 4 <aw:import>javax.servlet.ServletException</aw:import> 5 <aw:import>javax.servlet.http.HttpServlet</aw:import> 6 <aw:import>javax.servlet.http.HttpServletRequest</aw:import> 7 <aw:import>javax.servlet.http.HttpServletResponse</aw:import> 8 9 <aw:parentClass>javax.servlet.http.HttpServlet</aw:parentClass> 10 11 <aw:method name="doGet"> 12 public void doGet(HttpServletRequest request, HttpServletResponse response) 13 throws ServletException, IOException { 14 15 } 16 17 </aw:method> 18 19 <aw:method name="doPost"> 20 21 public void doPost(HttpServletRequest request, HttpServletResponse response) 22 throws ServletException, IOException { 23 doGet(request,response); 24 25 } 26 27 </aw:method>
1 package com.bookStore.web.servlet; 2 3 import java.io.IOException; 4 5 import javax.servlet.ServletException; 6 import javax.servlet.http.HttpServlet; 7 import javax.servlet.http.HttpServletRequest; 8 import javax.servlet.http.HttpServletResponse; 9 10 public class LoginServlet extends HttpServlet { 11 12 public void doGet(HttpServletRequest request, HttpServletResponse response) 13 throws ServletException, IOException { 14 15 } 16 17 public void doPost(HttpServletRequest request, HttpServletResponse response) 18 throws ServletException, IOException { 19 doGet(request, response); 20 21 } 22 23 }
标签:public png 目录 安装 except code ssi 代码 1.5.0
原文地址:http://www.cnblogs.com/id-666/p/7456425.html