%@ page import="java.util.Enumeration" %> <%-- List all headers in the message. If you post a header with HTML or javascript in it wont be escaped, which is a potential XSS security hole. Not for use on public systems --%> <%@ page contentType="text/html;charset=UTF-8" language="java" %> <%! //minimal escaping of angle braces. String escape(String source) { String s1 = source.replace("<", "<"); String s2 = source.replace(">", ">"); return s2; } %>