使用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: weblogic