Win a copy of Head First Agile this week in the Agile forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

send data, generate a chart and download it  RSS feed

 
mark smith
Ranch Hand
Posts: 258
  • 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
Bartender
Posts: 11445
18
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
Boost this thread!