• 大小: 18.79M
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2021-01-28
  • 语言: Java
  • 标签: java  系统  管理  oa  自动  

资源简介

北大青鸟学士后java(办公自动化管理系统(OA系统))

资源截图

代码片段和文件信息

package com.action;
/**
 * 文件下载Action
 */
import java.io.File;
import java.io.FileInputStream;
import java.io.InputStream;
import java.io.UnsupportedEncodingException;

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

import org.apache.struts2.ServletActionContext;

import com.opensymphony.xwork2.ActionSupport;

@SuppressWarnings(“serial“)
public class DownLoadAction extends ActionSupport{
    private String fileName = null;
    
    public InputStream getInputStream(){
     try {
HttpServletRequest request = ServletActionContext.getRequest();
String filePath=new String(request.getParameter(“filePath“).getBytes(“iso8859-1“)“UTF-8“);
this.fileName=filePath.substring(filePath.lastIndexOf(“/“)+1filePath.length());

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件       1110  2013-09-13 18:13  数据库表创建语句.sql

     文件        841  2013-09-13 09:33  OfficerOA\.classpath

     文件       1042  2013-09-13 17:49  OfficerOA\.project

     文件        503  2013-09-13 09:33  OfficerOA\.settings\.jsdtscope

     文件        364  2013-09-13 09:33  OfficerOA\.settings\org.eclipse.jdt.core.prefs

     文件        479  2013-09-13 17:50  OfficerOA\.settings\org.eclipse.wst.common.component

     文件        345  2013-09-13 09:33  OfficerOA\.settings\org.eclipse.wst.common.project.facet.core.xml

     文件         49  2013-09-13 09:33  OfficerOA\.settings\org.eclipse.wst.jsdt.ui.superType.container

     文件          6  2013-09-13 09:33  OfficerOA\.settings\org.eclipse.wst.jsdt.ui.superType.name

     文件       2066  2013-09-13 17:50  OfficerOA\build\classes\com\action\DownLoadAction.class

     文件       7161  2013-09-13 17:50  OfficerOA\build\classes\com\action\EmailAction.class

     文件       4099  2013-09-13 17:50  OfficerOA\build\classes\com\action\UserAction.class

     文件       3539  2013-09-13 17:50  OfficerOA\build\classes\com\action\VocationAction.class

     文件        570  2013-09-13 17:50  OfficerOA\build\classes\com\dao\EmailDao.class

     文件       3648  2013-09-13 17:50  OfficerOA\build\classes\com\dao\EmailDaoImpl.class

     文件        459  2013-09-13 17:50  OfficerOA\build\classes\com\dao\UserDao.class

     文件       2121  2013-09-13 17:50  OfficerOA\build\classes\com\dao\UserDaoImpl$1.class

     文件       3572  2013-09-13 17:50  OfficerOA\build\classes\com\dao\UserDaoImpl.class

     文件        507  2013-09-13 17:50  OfficerOA\build\classes\com\dao\VocationDao.class

     文件       3105  2013-09-13 17:50  OfficerOA\build\classes\com\dao\VocationDaoImpl.class

     文件       2169  2013-09-13 17:50  OfficerOA\build\classes\com\entity\Email.class

     文件       1582  2013-09-13 09:33  OfficerOA\build\classes\com\entity\Email.hbm.xml

     文件       2049  2013-09-13 17:50  OfficerOA\build\classes\com\entity\User.class

     文件       1424  2013-09-13 09:33  OfficerOA\build\classes\com\entity\User.hbm.xml

     文件       2128  2013-09-13 17:50  OfficerOA\build\classes\com\entity\Vocation.class

     文件       1490  2013-09-13 16:24  OfficerOA\build\classes\com\entity\Vocation.hbm.xml

     文件       3281  2013-09-13 09:33  OfficerOA\build\classes\struts.xml

     文件       1431  2013-09-13 09:33  OfficerOA\src\com\action\DownLoadAction.java

     文件       5928  2013-09-13 11:18  OfficerOA\src\com\action\EmailAction.java

     文件       3339  2013-09-13 09:33  OfficerOA\src\com\action\UserAction.java

............此处省略138个文件信息

评论

共有 条评论