This week's book giveaway is in the Reactive Progamming forum.
We're giving away four copies of Reactive Streams in Java: Concurrency with RxJava, Reactor, and Akka Streams and have Adam Davis on-line!
See this thread for details.
Win a copy of Reactive Streams in Java: Concurrency with RxJava, Reactor, and Akka Streams this week in the Reactive Progamming forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Junilu Lacar
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Knute Snortum
  • Tim Cooke
  • Devaka Cooray
Saloon Keepers:
  • Ron McLeod
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Ganesh Patekar

problem with MAC OS and Servlet

 
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
 
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
 
For my next feat, I will require a volunteer from the audience! Perhaps this tiny ad?
Java file APIs (DOC, XLS, PDF, and many more)
https://products.aspose.com/total/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!