Monthly Archives: 11月 2014

umeditor在weblogic下上传失败的bug修复

2014-11-30 by Jinyang | No Comments | Filed in 技术相关

使用umeditor上传图片时,在tomcat下正常可行的代码在部署到weblogic后报:strict servlet API: cannot call getWriter() after getOutputStream() 的错误 。 修改:imageUp.jsp  如下: <%@ page language=”java” contentType=”text/html; charset=utf-8″ pageEncoding=”utf-8″%> <%@ page import=”com.baidu.ueditor.um.Uploader”%> <% //System.out.println(“imageUp page begin”); request.setCharacterEncoding(“utf-8”); response.setCharacterEncoding(“utf-8”); String path = request.getContextPath(); String basePath = request.getScheme() + “://” + request.getServerName() + “:” + request.getServerPort() + path + “/”; String url = “http://” + request.getServerName() + “:” […]

Tags:

返回顶部