啊~~~~~~~~~~~~~~~~服了!<%@ page contentType="application/vnd.ms-word" language="java"%>
<meta http-equiv="Content-Type" content="application/vnd.ms-word; charset=iso-8859-1">是不是加这两句就行了?
我的TOMCAT还没架起来,没法实验!
有知道的吗?
<meta http-equiv="Content-Type" content="application/vnd.ms-word; charset=iso-8859-1">是不是加这两句就行了?
我的TOMCAT还没架起来,没法实验!
有知道的吗?
<%@ page contentType="text/html; charset=gb2312" language="java" import="java.sql.*" errorPage="" %>
<%@ page import="java.io.*"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>无标题文档</title>
</head><body>
<%
File file=new File("G:\\jsp.jsp");
FileInputStream stream=new FileInputStream(file);
FileOutputStream tfile=new FileOutputStream("e:\\file.txt",true);
int bt;
for(int i=0;i<file.length();i++){
bt=stream.read();
out.println(bt);
tfile.write(bt);
}
stream.close();
tfile.close();
%>
</body>
</html>