UploadMonitor.java
上传用户:shjgzm
上传日期:2017-08-31
资源大小:2757k
文件大小:0k
源码类别:

Ajax

开发平台:

Java

  1. package ajax.upload;
  2. import uk.ltd.getahead.dwr.WebContextFactory;
  3. import javax.servlet.http.HttpServletRequest;
  4. public class UploadMonitor {
  5. public UploadInfo getUploadInfo() {
  6. HttpServletRequest req = WebContextFactory.get()
  7. .getHttpServletRequest();
  8. if (req.getSession().getAttribute("uploadInfo") != null)
  9. return (UploadInfo) req.getSession().getAttribute("uploadInfo");
  10. else
  11. return new UploadInfo();
  12. }
  13. }