ServletActionContext.getResponse().setContentType("text/html;charset=GB2312"); ServletActionContext.getResponse().setCharacterEncoding("GB2312");
PrintWriter writer = ServletActionContext.getResponse().getWriter();
StandardEntityCollection coll = new StandardEntityCollection(); ChartRenderingInfo renderingInfo = new ChartRenderingInfo(coll);
String filename = ServletUtilities.saveChartAsPNG(chart, 700, 400, renderingInfo, ServletActionContext.getRequest().getSession());
ChartUtilities.writeImageMap(writer, filename, renderingInfo, true);
请您指出我代码中生成MAP乱码中的问题,非常感谢!!!
PrintWriter writer = ServletActionContext.getResponse().getWriter();
StandardEntityCollection coll = new StandardEntityCollection(); ChartRenderingInfo renderingInfo = new ChartRenderingInfo(coll);
String filename = ServletUtilities.saveChartAsPNG(chart, 700, 400, renderingInfo, ServletActionContext.getRequest().getSession());
ChartUtilities.writeImageMap(writer, filename, renderingInfo, true);
请您指出我代码中生成MAP乱码中的问题,非常感谢!!!
解决方案 »
- 学习过框架的来报个名!统计一下,看看框架是否有实用性!
- webwork结合dwr 提交form问题
- 困扰已久的问题!~~请高手帮助解决!~谢谢
- 发一个自己写的ORM工具类,请大家多提提意见!
- 出现“Cannot create iterator for this collection” 错误!
- maven+hibernate如何使用Junit测试
- 请大家帮忙:关于怎么开发EJB Container及其工作原理的问题,可用资源是什么
- 请问关于JDBC调用sql server存储过程的问题
- 请问J2ee和ActiveX能否一起使用
- 账户钱包更新问题
- 初学者请教用JAVA判断日期
- java 如何取得视频文件的总时长?
参数不是乱码,是经过了转码!