%@ page import="java.io.*" %>
| Term | Meaning |
|---|---|
| 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(" |