Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How do I make a GuestBook Applet?

 
m.l. marcoernandes
Greenhorn
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.
This:-----------
String line;
URL url=new URL(getCodeBase(), "guestbook_file.txt");
InputStream in = url.openStream();
BufferedReader bf = new BufferedReader(new InputStreamReader(in));
line = bf.readLine();
in.close();
------------------
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.
thanks
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic