admin 管理员组

文章数量: 887021


2024年1月11日发(作者:sharepoint2010入门)

package t;import ption;import eption;import p;import ;import tException;import vlet;import rvlet;import rvletRequest;import rvletResponse;import o;import ject;/** * Servlet implementation class anhui */@WebServlet("/anhui")public class anhui extends HttpServlet { private static final long serialVersionUID = 1L;

/** * @see HttpServlet#HttpServlet() */ public anhui() { super(); // TODO Auto-generated constructor stub } /** * @see HttpServlet#doGet(HttpServletRequest request, HttpServletResponse response) */ protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { tentType("text/html;charset=utf-8"); infoDao dao =new infoDao(); Map map = new HashMap<>();/* ArrayList list1=new ArrayList(); ArrayList list2=new ArrayList();*/ try { map=Info18(); } catch (SQLException e) { // TODO Auto-generated catch block tackTrace(); }

JSONObject fb = ject(map); ter().print(fb); } /** * @see HttpServlet#doPost(HttpServletRequest request, HttpServletResponse response) */ protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { // TODO Auto-generated method stub doGet(request, response); }}


本文标签: 入门 作者