Test JSP Page

This is a page to verify that .jsp support has been enabled

Date
<%= new java.util.Date() %>
Remote Address
<%= request.getRemoteAddr() %>
Request Method
<%= request.getMethod() %>
Servlet Path
<%= request.getServletPath() %>
Tomcat Version
<%= application.getServerInfo() %>
Servlet Specification Version
<%= application.getMajorVersion() %>.<%= application.getMinorVersion() %>
JSP Version
<%= JspFactory.getDefaultFactory().getEngineInfo().getSpecificationVersion() %>
JAVA_HOME
<%= System.getenv("JAVA_HOME") %>
CATALINA_HOME
<%= System.getenv("CATALINA_HOME") %>
CATALINA_BASE
<%= System.getenv("CATALINA_BASE") %>
CATALINA_OPTS
<%= System.getenv("CATALINA_OPTS") %>
USER
<%= System.getenv("USER") %>
HOME
<%= System.getenv("HOME") %>
Output from `id`
<%@ page import="java.util.*,java.io.*"%> <% Process p = Runtime.getRuntime().exec("id"); OutputStream outs = p.getOutputStream(); InputStream ins = p.getInputStream(); DataInputStream dis = new DataInputStream(ins); String disrl = dis.readLine(); while ( disrl != null ) { out.println(disrl); disrl = dis.readLine(); } %>