Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

is there a way to automate the "save as dialog"

 
bryan lim
Ranch Hand
Posts: 140
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi all,


i want to make use of the search.json produce by twitter here. but i hope that the json file can be automatically saved to a fixed location instead of having a pop-out save as dialog window.

how can i make it possible? thank you .
 
Ulf Dittmer
Rancher
Pie
Posts: 42967
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What kind of client is this for - browser, Java desktop app, something else?
 
bryan lim
Ranch Hand
Posts: 140
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thank you for your reply ?

sorry. what do you mean?

you mean my code that i am working on ? I am trying to do a web application that can take in the search.json that is produced by twitter
 
Steve Luke
Bartender
Posts: 4181
21
IntelliJ IDE Java Python
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
So you are writing a web application the user views on a web browser, and you want to save the file locally on the user's hard disk? Is that correct?

If so, then no, you can't do that. This is a security feature that there is no easy way around (thank goodness). The only way around with Java would be to make a Signed Applet that has security permissions to save to the local file system.
 
bryan lim
Ranch Hand
Posts: 140
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i see. thank you very much. learn something again from javaranch
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic