wood burning stoves*
The moose likes Beginning Java and the fly likes is there a way to automate the Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » Beginning Java
Bookmark "is there a way to automate the "save as dialog"" Watch "is there a way to automate the "save as dialog"" New topic
Author

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

bryan lim
Ranch Hand

Joined: Dec 26, 2008
Posts: 140
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
Marshal

Joined: Mar 22, 2005
Posts: 42030
    
  64
What kind of client is this for - browser, Java desktop app, something else?


Ping & DNS - my free Android networking tools app
bryan lim
Ranch Hand

Joined: Dec 26, 2008
Posts: 140
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

Joined: Jan 28, 2003
Posts: 4181
    
  21

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.


Steve
bryan lim
Ranch Hand

Joined: Dec 26, 2008
Posts: 140
i see. thank you very much. learn something again from javaranch
 
GeeCON Prague 2014
 
subject: is there a way to automate the "save as dialog"