aspose file tools*
The moose likes GWT and the fly likes send data, generate a chart and download it Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » GWT
Bookmark "send data, generate a chart and download it" Watch "send data, generate a chart and download it" New topic
Author

send data, generate a chart and download it

mark smith
Ranch Hand

Joined: Apr 05, 2005
Posts: 250
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

Joined: Jul 26, 2007
Posts: 10523
    
    9

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


[How to ask questions] [Donate a pint, save a life!] [Onff-turn it on!]
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: send data, generate a chart and download it