Win a copy of Machine Learning Systems: Designs that scale this week in the Scala forum
or Xamarin in Action: Creating native cross-platform mobile apps in the Android forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

How do I make a GuestBook Applet?  RSS feed

Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I would like to write an Applet Guestbook that runs on a free home page.
String line;
URL url=new URL(getCodeBase(), "guestbook_file.txt");
InputStream in = url.openStream();
BufferedReader bf = new BufferedReader(new InputStreamReader(in));
line = bf.readLine();
is the part that reads the messages stored into "guestbook_file.txt". And it works.
What do I have to do to let people leave a message (I nead something that adds/appends the message in guestbok_file.txt)? Servlet? Permission? etc..?
NOTE: guestbook_file.txt lives on the same home page domain in which the applet should run.
this is supposed to be a surprise, but it smells like a tiny ad:
Rocket Oven Kickstarter - from the trailboss
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!