<%@ page language='java' import='java.io.*'%>

Wedding Guestbook and
Baby Girl Welcome for
Irene
&
Wulf
& Lana
Saratoga, 7th of June, 2003
Ludwigsburg, 9th of August, 2003
Baby Girl Lana Noami, 4th of June, 2004

Name:

Email:

Greetings:

Congratulations received from:

<% // Update the virtual wedding guestbook of Irene and Wulf String name = request.getParameter("name"); String email = request.getParameter("email"); String comment = request.getParameter("comment"); email = "" + email + ""; if ((email != null) && (name != null)) { if ((!(email.equals(""))) && (!(name.equals("")))) { FileWriter fr = new FileWriter ("C:\\dsgroot\\irenewulf\\congratulations.txt", true); PrintWriter pw = new PrintWriter (fr, true); pw.println(""); pw.println(clock.getDate()); pw.println(name); pw.println(email); pw.println(comment); pw.close(); name = null; email = null; } } %> <% BufferedReader in = new BufferedReader(new InputStreamReader(new FileInputStream("C:\\dsgroot\\irenewulf\\congratulations.txt"))); String line; in.readLine(); while ((line = in.readLine()) != null) { String guestDate = line; String guestName = in.readLine(); String guestEmail = in.readLine(); %> <% String guestComment = ""; line = in.readLine(); do { guestComment = guestComment + line + "
"; line = in.readLine(); } while (line != null && !(line.equals(""))); %> <% } %>
Date Name Email Greetings
<%= guestDate %> <%= guestName %> <%= guestEmail %> <%= guestComment %>


Copyright © 2003 dsg-web . All rights reserved.

Information in this document is subject to change without notice. Other products and companies referred to herein are trademarks or registered trademarks of their respective companies or mark holders.