<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <%@ page contentType="text/html; charset=UTF-8" %> <%@ page import="java.util.Date,java.util.Locale,java.text.SimpleDateFormat" %> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <title>Error 404: Page Not Found</title> <style type="text/css"> body{ background: #fff;} #wrapper { margin: auto;} h1 { margin: 0 auto; padding: 10px 10px 0px; font-size: 24px; font-weight: bold; color:#F00; } #content { margin: auto 10px; font-size: 12px; } .message { font-size: 14px; color:#000; } </style> </head> <body> <div id="wrapper"> <h1>Error 404: Page Not Found</h1> <div id="content"> <p class="message">Sorry, this page was not found</p> <br /> <hr /> <% SimpleDateFormat simpleDate = new SimpleDateFormat("EE MMM dd yyyy hh:mm:ss aa zzz", Locale.US);%> <strong>Date: </strong><%=simpleDate.format(new Date()) %><br /> <strong>IP Address: </strong><%=request.getRemoteAddr() %><br /> <strong>User Agent: </strong><%=request.getHeader("User-Agent") %><br> <strong>Referer: </strong><%=request.getHeader("Referer") %><br> </div> </div> </body> </html>