Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Write with an applet  RSS feed

 
Philip Pross
Ranch Hand
Posts: 76
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hey, I have an application that checks for a host file, but I need it in an applet. Later on, I found out "you can't write or read from a hard drive".
Phil
 
Carl Trusiak
Sheriff
Posts: 3341
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Right, but you can read a socket connection back to the server that is the Code Base for your applet. Check out the Code Barn HelloServerFile gives an example of this
 
Peter Tran
Bartender
Posts: 783
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Philip,
Carl's suggestion is the only way I can think of doing what you need. Just make sure you handle the exception appropriately in your applet when the server isn't available.
-Peter
 
Philip Pross
Ranch Hand
Posts: 76
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I not sure you understood, I working under unix and netscape. When a user logs on to the web page, they must log in (and checks for the hosts file, if the user doesn't have the right IP address the applet can't load. So the user has to manully append the file
Thanks anyway
 
Carl Trusiak
Sheriff
Posts: 3341
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You will not be able to read the hosts file on a clients machine from an applet. You'll need to rethink your login methodology. You might want to consider the WebStart technology available on the Sun Site and run this as a stand alone application.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!