Hola,
Necesito generar  un archivo excel usando  POI-XSSF y al hacer clic en un boton permitir descargar el archivo pero sin almacenar fisicamente el mismo
estoy generando el archivo asi
public static void main(String[] args) throws IOException {
		// TODO Auto-generated method stub
		System.out.println(" equivale");
		Vector a = new Vector();
		Vector b = new Vector();
		a.addElement("10a");
		a.addElement("11a");
		a.addElement("12a");
		a.addElement("13a");
 
		HSSFWorkbook wb = new HSSFWorkbook();
		HSSFSheet sheet = wb.createSheet("gelia");
		// Create a row and put some cells in it. Rows
		for(int i=0; i<a.size();i++){
		HSSFRow row = sheet.createRow((short)0);
 
		// Create a cell and put a value in it.
 
		row.createCell((short)0).setCellValue((String)a.ge  t(i));
 
		row.createCell((short)1).setCellValue((String)a.ge  t(i));
 
		row.createCell((short)2).setCellValue((String)a.ge  t(i));
		}
		// Write the output to a file
		FileOutputStream fileOut = new FileOutputStream("ArchivosUpload/workbook.xls");
		wb.write(fileOut);
		fileOut.close();
	}
 
gracias 
  
 
Este tema le ha gustado a 1 personas