⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 datetimes.java

📁 jdo开发实例,一个功能全面的oa系统
💻 JAVA
字号:
// Decompiled by Jad v1.5.7g. Copyright 2000 Pavel Kouznetsov.
// Jad home page: http://www.geocities.com/SiliconValley/Bridge/8617/jad.html
// Decompiler options: packimports(3) fieldsfirst ansi
// Source File Name:   datetimes.java

package com.gzrealmap.oa.action;

import com.gzrealmap.oa.upload.*;
import java.io.*;
import javax.servlet.*;
import javax.servlet.http.*;

public class datetimes
    extends HttpServlet {

  private byte bytes[];
  LawinfoDtos lf;

  public datetimes() {
    lf = new LawinfoDtos();
  }

  public void init() throws ServletException {
  }

  public void doGet(HttpServletRequest request, HttpServletResponse response) throws
      ServletException, IOException {
    uptext uts = new uptext();
    int intid = Integer.parseInt(request.getParameter("idd"));
    LawInfoActionForm lf = uts.getallbyid(intid);
    byte bytes[] = lf.getContext();
    String CONTEXT_TYPE = lf.getFilename();
    String filenames = new String(lf.getUrl().getBytes("gb2312"), "iso8859-1");
    System.out.println("类型为:" + CONTEXT_TYPE);
    if (bytes != null && bytes.length > 0) {
      response.setContentType(CONTEXT_TYPE);
      response.setContentLength(bytes.length);
      response.setHeader("Content-Disposition",
                         "attachment;filename=" + filenames + "");
      javax.servlet.ServletOutputStream output = response.getOutputStream();
      output.write(bytes);
      output.flush();
      output.close();
    }
  }

  public void doPost(HttpServletRequest request, HttpServletResponse response) throws
      ServletException, IOException {
    doGet(request, response);
  }

  public void destroy() {
  }
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -