This week's book giveaway is in the Performance forum.
We're giving away four copies of The Java Performance Companion and have Charlie Hunt, Monica Beckwith, Poonam Parhar, & Bengt Rutisson on-line!
See this thread for details.
Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

send data, generate a chart and download it

 
mark smith
Ranch Hand
Posts: 256
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi

i need to send data on the server to generate an excel file on the server and after download it to the client.

i have some structure of object to send to be able to generate the excel file.

i read i need to create a servet to be able to download the file, an anchor need to be added to the client site.

my problem is how to send structured object to the servlet?
maybe there is another way to do it?

thanks
 
Maneesh Godbole
Saloon Keeper
Posts: 11070
13
Android Eclipse IDE Google Web Toolkit Java Mac Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If your POJO is serializable, you can open a stream and read/write the POJO to it. An example can be found here http://www.coderanch.com/t/502491/Streams/java/Calling-servlet-Java-Class-receiving
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic