public void creaXLS(HttpServletResponse response) throws ServletException, IOException {
        ConexionBD bd = new ConexionBD();
        ArrayList<Equipo> equipos = bd.reportes(marca, numero, familia, tipoEquipo, fechai, fechaf, departamento, ubicacion, responsable, estado);
        response.setContentType("application/vnd.ms-excel;charset=UTF-8");
        response.setHeader("Content-Disposition", "attachment; filename=Reporte.xls");

        response.getWriter().write("Num. Inv. Interno");
        response.getWriter().write(",");
        response.getWriter().write("Num. Inv. UNAM");
        response.getWriter().write(",");
        response.getWriter().write("Marca");
        response.getWriter().write(",");
        response.getWriter().write("Modelo");
        response.getWriter().write(",");
        response.getWriter().write("Serie");
        response.getWriter().write(",");
        response.getWriter().write("Familia");
        response.getWriter().write(",");
        response.getWriter().write("Tipo");
        response.getWriter().write(",");
        response.getWriter().write("Fecha de registro");
        response.getWriter().write(",");
        response.getWriter().write("Departamento");
        response.getWriter().write(",");
        response.getWriter().write("Ubicación");
        response.getWriter().write(",");
        response.getWriter().write("Responsable");
        response.getWriter().write("\n");
        for (Equipo e : equipos) {
            response.getWriter().write(new Integer(e.getClave_activo_fijo()).toString());
            response.getWriter().write(",");
            response.getWriter().write(new Integer(e.getNum_inv_unam()).toString());
            response.getWriter().write(",");
            response.getWriter().write(e.getClave_marcar());
            response.getWriter().write(",");
            response.getWriter().write(e.getClave_modelo());
            response.getWriter().write(",");
            response.getWriter().write(e.getSerie());
            response.getWriter().write(",");
            response.getWriter().write(e.getClave_familia());
            response.getWriter().write(",");
            response.getWriter().write(e.getClave_tipo());
            response.getWriter().write(",");
            response.getWriter().write(e.getFecha_de_resguardo());
            response.getWriter().write(",");
            response.getWriter().write(e.getClave_institucion());
            response.getWriter().write(",");
            response.getWriter().write(e.getClave_area());
            response.getWriter().write(",");
            response.getWriter().write(e.getResponsable());
            response.getWriter().write("\n");

        }

    }