In Apache Tomcat we have a servlet that does something like this:
public class MyExcelServlet extends HttpServlet {
public void doGet (HttpServletRequest request, HttpServletResponse
response) throws ServletException, IOException {
try {
response.setContentType("application/vnd.ms-excel" );
response.setHeader("Content-disposition", "inline;filename="+filename);
HSSFWorkbook wb = new HSSFWorkbook();
// create your workbook using Apache POI
wb.write(response.getOutputStream());
} catch (Exception e) {
}
}
}
On Oct 26, 2009, at 6:34 AM, @lan Williamson wrote:
That is the bit you are going to have to code up yourself
The purpose of POI is to give you the low-level functions to which
to operate with an EXCEL file.
veena pandit wrote:
Hi,
It looks like all the examples on the page here:
http://poi.apache.org/spreadsheet/examples.html
are examples that produce an excel file. I need an example
that opens the file as a swing application.or in the browser,
Is there such an example?
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]