<%@ page import="java.io.*" %>

Ian Darwin's Computer Terms and Acronyms

<% // This part of the Servlet generates a list of lines like // "); } %>
TermMeaning
JSP Java Server Pages, a neat tool for ... // Filenames like this must NOT be read as parameters, since that // would allow any script kiddie to read any file on your system!! // In production code they would be read from a Properties file. String TERMSFILE = "/var/www/htdocs/hs/terms.txt"; TermsAccessor tax = new TermsAccessor(TERMSFILE); Iterator it = tax.iterator(); while (it.hasNext()) { Term t = it.next(); out.print("
"); out.print(t.term); out.print(""); out.print(t.definition); out.println("

Printer-friendly (Acrobat PDF) version
Ask about another term
Back to HS Back to DarwinSys
Produced by $Id: terms.jsp,v 1.6 2002/01/26 19:04:11 ian Exp $ using <%= ident %>.