<%@ page import="java.io.*" %> Ønskjeliste <% BufferedReader input = new BufferedReader(new FileReader("/locals/web/folk/jorgenav/onskeliste.txt")); String line = ""; String[] lines = new String[100]; int counter = 0; while ((line = input.readLine()) != null) { out.println(line); lines[counter] = line; counter++; } out.flush(); input.close(); %> <% String mywish = request.getParameter("mywish"); String status = request.getParameter("status"); String melding = request.getParameter("melding"); if (status != null) { int myind = Integer.parseInt( mywish )*4; lines[myind+2] = status; lines[myind+3] = melding; //always give the path from root. This way it almost always works. try { PrintWriter pw = new PrintWriter(new FileOutputStream("/locals/web/folk/jorgenav/onskeliste.txt")); for (int i=0; i % align = "middle"> <% for( int i=0; i <% for( int j=0; j<4; j++) { %> <% } %> <% } %>
<%= lines[i*4+j] %>

Ønskeliste til Ingvild og Jørgen sitt bryllup

Hei, og velkommen til ønskelista vår

Vi vil ha:

-Kjøkkenmaskin


Endre på liste: