How to use Flex and Java to download files from a server? -
i'm building flex web application there option export data table csv format (theoreitcally, far, haha). since it's web application, assumed best way go send request server generate file, , either send file (or link it) flex application, , use filereference download file. correct way go this?
could give me pointers on how this, however? there exisitng remote objects in place call java functions on server, thought i'd try along lines?
i did bunch of research, , stumbled across things httpresponses , httpservletresponses in java, have no idea how bridge gap between client-side , server-side use effectively. haha.
thanks!
what have done have flex open new tab/window , navigate servlet.
navigatetourl(new urlrequest(url),'_blank');
then use httpservletresponse
write file out client, displayed in browser. pdf, though.
in order use httpservletresponse
you'll need write httpservlet
, configure in web.xml
. here basic tutorial. google has lot more.
Comments
Post a Comment