File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Applets and the fly likes Is it a good practice to save files in local system via signed applet Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Applets
Bookmark "Is it a good practice to save files in local system via signed applet" Watch "Is it a good practice to save files in local system via signed applet" New topic
Author

Is it a good practice to save files in local system via signed applet

harish alwalakumar
Greenhorn

Joined: Jan 05, 2012
Posts: 3
Hi I have swing application, which I converted as applet (Signed Applet). Swing application save the user preferences in local files system.
So my Question: is it a good practice to save files(user preferences) in local files system.
Akhilesh Trivedi
Ranch Hand

Joined: Jun 22, 2005
Posts: 1558
I still did not get your main question.

Is it swing Vs applet?
or
advantages/disadvantage of saving data locally?


Keep Smiling Always — My life is smoother when running silent. -paul
[FAQs] [Certification Guides] [The Linux Documentation Project]
Tim Moores
Rancher

Joined: Sep 21, 2011
Posts: 2408
Have you considered using java.util.prefs instead? There's no need to write your own preference system.
harish alwalakumar
Greenhorn

Joined: Jan 05, 2012
Posts: 3
Hi
The application is swing application. One of the features in the application is to store the user preferences of the application(say save userid/pwd) locally at say c:\DOcument and Settings\<username>\appName. So that application will pickup the user credentials from locally stored data. User need not enter every time he opens the application.

Now we would like to give this application as Applet as well. So we have created new Applet and used this swing application in it. It works perfectly without issues. (its signed applet)

Now regarding the above said feature, we are analyzing if storing the user data locally is a good practice running the application from applet. However we know how to access local file system. But we are looking for Best Practices of Applet in storing the content in local file system and accessing the same in next usage of applet.

Hope I am clear on my question.
Tim Moores
Rancher

Joined: Sep 21, 2011
Posts: 2408
Tim Moores wrote:Have you considered using java.util.prefs instead? There's no need to write your own preference system.
harish alwalakumar
Greenhorn

Joined: Jan 05, 2012
Posts: 3
any thoughts please
Tim Moores
Rancher

Joined: Sep 21, 2011
Posts: 2408
Tim Moores wrote:Have you considered using java.util.prefs instead?
Darryl Burke
Bartender

Joined: May 03, 2008
Posts: 4664
    
    5

Tim, three thumbs up for perseverance. I do hope it finally sinks in.


luck, db
There are no new questions, but there may be new answers.
Paul Clapham
Bartender

Joined: Oct 14, 2005
Posts: 18991
    
    8

On the other hand Harish is definitely persevering at looking for the "Best Practice™".

However in this case it sounds as silly as asking whether it's a "best practice" to wear a tie to work. "Best practice" is more of an architecture concept and doesn't really make sense when making detailed decisions about how to implement a feature of an application.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Is it a good practice to save files in local system via signed applet