This week's book giveaway is in the JavaScript forum.
We're giving away four copies of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js and have Paul Jensen on-line!
See this thread for details.
Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

problem with MAC OS and Servlet  RSS feed

 
Mrutyunjay Hanchinal
Ranch Hand
Posts: 50
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi
I am facing a strange problem with MAC OS.
I have a button "Generate" on click of which it contacts a servlet and it generates a file and is written to response which makes the download confirmation box to be shown. on saving the file the file is saved in local system.
This is behaving perfectly in NT. But in MAC the file gets downloaded but when I try to open it, it says unable to open.
Is it anything to do with the servlet response or MAC OS?
Please help
Thanks in anticipation
Mrutyunjay
 
joe darwin
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Mrutyunjay!
What kind of file are you downloading onto the mac? If the servlet is on a windows machine and you're trying to download a file onto the mac it may not work because windows and mac have different file formats. Or maybe the reason why you can't open the file on the mac is that you have to tell mac os which application to open the file with. If the file's icon on the mac looks like a plain white sheet of paper then that is the problem.
joe darwin
think different
 
Mrutyunjay Hanchinal
Ranch Hand
Posts: 50
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi joe
I am downloading a HTML page with a html table within it.
Is there anything that has to be done to plain html?
I have set the content type to some junk value so that the file gets downloaded and not opened in the browser window.
Is it that I have to do something while writing the file, when the request is from MAC machine?
Thanks
Mrutyunjay
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!