如题 
这个问题搁置了好多天了,一直没解决贴上代码
<%@page language="java" pageEncoding="gb2312" import="java.io.*"%>
<%@page import="java.net.*"%>
<%
    URL url = null;
InputStream is = null;
BufferedInputStream bis = null;
URLConnection urlconn = null;
int buff=0;
response.setContentType("application/pdf");
response.setHeader("Content-disposition", "file=xx");
try {
url = new URL("ftp", "192.168.0.253", 21, "/lwb/pdf.pdf");
urlconn = url.openConnection();
bis = new BufferedInputStream(urlconn.getInputStream());
while ((buff=bis.read())!=-1) {
response.getOutputStream().write(buff);
} } catch (IOException ee) {
ee.printStackTrace();
} finally {
if (is != null) {
is.close();
}
if (bis != null) {
bis.close();
}
}
%>
环境:windowsxp sp2 , ie6.0 , jdk1.5 , tomcat5.0 , eclipse3.2 , myeclipse5.0  
出现的现象:  运行次jsp时,IE里面空白,调用Adobe reader在一个单独的窗口打开
我希望的结果是: 在IE里直接打开用此方法打开word,excel文件时,在IE里直接显示
用<a href="xx.pdf">test</a>时,在IE里直接显示我在网上也遇到同样的案例(他们的问题是服务器的差别导致的)
http://gocom.primeton.com/modules/newbb/titleflat_3541_4.htm  望高手指点