首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 网站开发 > JavaScript >

jsp。

2012-10-08 
jsp。。%@ page languagejava importcom.junze.huiju.framework.util.BufferStream pageEncodingUT

jsp。。

<%@ page language="java" import="com.junze.huiju.framework.util.BufferStream" pageEncoding="UTF-8" %>
<%@ taglib uri="/struts-tags" prefix="s"%>

<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";

String real=request.getRealPath("");//返回结果如:E:\workspace\ITS\webroot
?BufferStream stream=new BufferStream();
??byte[] temp= stream.BufferStreamForByte(url,1024);
? ?stream.writeByteArryToImage(temp,real+"Trafficimage.jpg");
%>
<img? src="<%=basePath %>Trafficimage.jpg"/>

?

java中replaceAll反斜杠\http://blog.sina.com.cn/s/blog_3fc066b20100b3zm.html

热点排行
Bad Request.