UploadMonitor.java
资源名称:Ajax.rar [点击查看]
上传用户:shjgzm
上传日期:2017-08-31
资源大小:2757k
文件大小:0k
源码类别:
Ajax
开发平台:
Java
- package ajax.upload;
- import uk.ltd.getahead.dwr.WebContextFactory;
- import javax.servlet.http.HttpServletRequest;
- public class UploadMonitor {
- public UploadInfo getUploadInfo() {
- HttpServletRequest req = WebContextFactory.get()
- .getHttpServletRequest();
- if (req.getSession().getAttribute("uploadInfo") != null)
- return (UploadInfo) req.getSession().getAttribute("uploadInfo");
- else
- return new UploadInfo();
- }
- }