Win a copy of Kubernetes in Action this week in the Cloud/Virtualization 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.
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!