This week's giveaway is in the Threads forum.
We're giving away four copies of Java Concurrency Live Lessons and have Doug Schmidt on-line!
See this thread for details.
Win a copy of Java Concurrency Live Lessons this week in the Threads forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Writing to an excel sheet from java servlet  RSS feed

 
Sumit Arora
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
eg

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.
eg
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
Posts: 688
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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:
POI
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!