Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

send data, generate a chart and download it

 
mark smith
Ranch Hand
Posts: 257
  • 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: 11092
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