package lc.progress;

import java.io.IOException;

import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;

import lc.progress.vo.fileUploadStatus;

public class progressServlet extends HttpServlet {
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	public void doPost(HttpServletRequest request, HttpServletResponse response) {
		HttpSession session = request.getSession();
		fileUploadStatus status = (fileUploadStatus) session.getAttribute("status");
		try {
			response.reset();
			response.getWriter().write("{\"pBytesRead\":"
					+status.getPBytesRead()+",\"pContentLength\":"+status.getPContentLength()+"}");
		System.out.println("{\"pBytesRead\":"
				+status.getPBytesRead()+",\"pContentLength\":"+status.getPContentLength()+"}");
		} catch (IOException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
		
	}
	public void doGet(HttpServletRequest request, HttpServletResponse response) {
		this.doPost(request,response);
		
	}
}
最近下载更多
tianqisonw  LV1 2月1日
wanglun_wl  LV10 1月5日
gvin001  LV14 2023年5月16日
hgwnet  LV1 2021年12月8日
张骞的账号  LV1 2021年12月7日
vander  LV1 2021年7月11日
©~~©  LV1 2021年4月22日
oldfox  LV18 2020年12月24日
1530688385  LV5 2020年12月18日
sevenLeeWei  LV1 2020年11月13日
最近浏览更多
tianqisonw  LV1 2月1日
wanglun_wl  LV10 1月5日
1024173314  LV1 2023年12月31日
Ji123455  LV8 2023年9月21日
changhui  LV1 2023年9月7日
wwswdgyqd  LV6 2023年5月25日
gvin001  LV14 2023年5月16日
月光skr  LV3 2023年4月16日
微信网友_6166561027215360  LV2 2022年10月8日
我们都是小怪兽  LV3 2022年9月6日
顶部 客服 微信二维码 底部
>扫描二维码关注最代码为好友扫描二维码关注最代码为好友