JSON取代

<%
       BarChart bar = new BarChart();
       String filename = bar.showBar(response,session,request.getRealPath("/"));
       System.out.println("filename="+filename);
       //String graphURL = request.getContextPath() + "/servletDisplayChart?filename=" + filename;
       String graphURL = request.getContextPath() + "/chartTemp/10917251213463489195.png";   
       System.out.println("graphURL="+graphURL);
     %>
     <img src="<%=graphURL %>" usemap="#<%=filename %>" border="0"/>



在jsp页面中写java代码   达到传递数据的作用

你可能感兴趣的:(json)