servlet的Gson怎样传到网页中并使用
protected void doGet(HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException {
ServerInitListener.ServletContextListener();
WaterGate[] GateList=ServerInitListener.GateList;
Gson gson = new Gson();
//String t1=gson.toJson(GateList);
int Gate_num=ServerInitListener.Gate_num;