wood burning stoves 2.0*
The moose likes Servlets and the fly likes Calling Servlet with contenttype = application/force-download from javascript Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "Calling Servlet with contenttype = application/force-download from javascript" Watch "Calling Servlet with contenttype = application/force-download from javascript" New topic
Author

Calling Servlet with contenttype = application/force-download from javascript

Manish Ramrakhiani
Ranch Hand

Joined: Aug 20, 2009
Posts: 44
Hi All,

I need to call a Controller on Spring framework whose content-type is "application/forcedownload" from a javascript function.
I could successfully call it from an Ajax call but do not understand why Servlet was not popping up the file(there were no exceptions).

Could you please tell me how can I achieve the same; Can it be done the way I am doing it or how can I call the controller directly from javascript function

Thanks,
Manish Ramrakhiani
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Calling Servlet with contenttype = application/force-download from javascript