• Post Reply Bookmark Topic Watch Topic
  • New Topic

How do I make a GuestBook Applet?

m.l. marcoernandes
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.
my overalls have superpowers - they repel people who think fashion is important. Tiny ad:
the new thread boost feature brings a LOT of attention to your favorite threads
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!