2008-05-06
weblogic 下excel乱码问题的解决
在web.xml中配置
<mime-mapping>
<extension>xls</extension>
<mime-type>application/xls</mime-type>
</mime-mapping>
<%@ page language="java" contentType= "text/html; charset=UTF-8"%>
<%@ page import="java.util.*,java.util.regex.*,java.io.OutputStream"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
//response.setContentType("application/excel;charset=UTF8");
%>
<html>
<head>
<title></title>
</head>
<body>
<iframe id="frame1" width="100%" height="100%" src="zjh.xls"/>
</body>
</html>
<mime-mapping>
<extension>xls</extension>
<mime-type>application/xls</mime-type>
</mime-mapping>
<%@ page language="java" contentType= "text/html; charset=UTF-8"%>
<%@ page import="java.util.*,java.util.regex.*,java.io.OutputStream"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
//response.setContentType("application/excel;charset=UTF8");
%>
<html>
<head>
<title></title>
</head>
<body>
<iframe id="frame1" width="100%" height="100%" src="zjh.xls"/>
</body>
</html>
发表评论
我的相册
CIMG0924
共 34 张
共 34 张
链接
最新评论
-
C3P0连接池的相关配置
c3p0使用实例 public class DBConn   ...
-- by beyondsanli -
优秀员工感想
写的很有内涵我很喜欢 挺有特色的
-- by blucedong -
编码之上传下载
import java.io.UnsupportedEncodingExcept ...
-- by beyondsanli -
由功夫熊猫想到的
评论转载自:http://bbs.gxsd.com.cn/viewthread. ...
-- by beyondsanli -
由功夫熊猫想到的
评论转载自:http://bbs.gxsd.com.cn/viewthread. ...
-- by beyondsanli







评论排行榜