File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes I/O and Streams and the fly likes Writing to an excel sheet from java servlet Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Make it so: Java DB Connections & Transactions this week in the JDBC forum!
JavaRanch » Java Forums » Java » I/O and Streams
Bookmark "Writing to an excel sheet from java servlet" Watch "Writing to an excel sheet from java servlet" New topic

Writing to an excel sheet from java servlet

Sumit Arora

Joined: Dec 14, 2003
Posts: 1
Hi ,
I am trying to write to excel from a servlet.The data consists of timesheet data for the employees of the company.
The fields are Phase, Subphase,Date and Time spent. Right now I am throwing them in this format rowwise records.

Phase Subphase Date Time
Planning Documentaion 15/10/2003 3.5
But the requirement in the template is for ths phase and subphase to be rowwise and the date to be increasing column wise and time to be filled in that.
Phase Subphase 15/10/2003 16/10/2003 17/10/2003 18/10/2003
Planning Documentaion 3.5 4.5 5.5 2.0

Can someone help me in arranging in this format?
Adrian Yan
Ranch Hand

Joined: Oct 02, 2000
Posts: 688
I'm not quite sure what you asking for. Are you having problem writing to excel, or having problem with the formatting?
If you want to write to Excel in Java, you need the POI interface from Jarkata:
I agree. Here's the link:
subject: Writing to an excel sheet from java servlet
It's not a secret anymore!