Win a copy of Soft Skills: The software developer's life manual this week in the Jobs Discussion forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
Manish Ramrakhiani
Ranch Hand
Posts: 44
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Consider Paul's rocket mass heater.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic