Jquery实现省市联动
JqProvinceServlet: public void doGet (HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { try { response.setContentType( "text/html;charset=UTF-8" ); request.setCharacterEncoding( "UTF-8" ); JqProvinceCityService jqProvinceCityService = new JqProvinceCityService(); List<Province> list = jqProvinceCityService.findProvince(); request.setAttribute( "list" , list); request.getRequestDispatcher( "/JQ_province_city/JQ_province_city.jsp" ).forward(request, response); } catch (SQLException e) { // TODO Auto-generated catch block e.printStackTrace(); } }