如题
解决方案 »
- <%@ taglib uri="http://struts.apache.org/tags-html" prefix="html" %>是什么标签?
- 用DWR框架实现Ajax的登录效果,先天不足
- 100分求一Java Web开发的个人博客系统
- pplication/x-www-form-urlencoded 什么意思哦?
- JDBC调用Sybase存储过程,结果集总是无法返回!
- 请教URLConnection 的问题,急!!
- 如何存取微软DNS服务器的数据?
- 我对数据库的更改怎么没反映呀?大家帮我看看~
- 在上写一个,请问Servlet的Source文件与Class类文件放在哪?DefaultWebApp\WEB-INF
- java.text.ParseException: Unparseable date: "2014-09-24 17:07:23"
- jsp?id=呵呵>>怎么转换成中文的不会出现乱码
- struts2的result无法重定向问题
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%><%
//response.setContentType("image/jpg"); 不能设置,这个页面其实就是一张图片,
String filename="D:\\2.jpg";
BufferedOutputStream bos = null;
BufferedInputStream bis =new BufferedInputStream(new FileInputStream(filename));
bos = new BufferedOutputStream(response.getOutputStream());
int i;
while ((i=bis.read()) != -1) {
bos.write(i);
}
bos.close();
bis.close();
// response.flushBuffer();
//out.clear();
out = pageContext.pushBody();
%>