%@ page import = "java.util.*" %>
JSP JBCS-1050
- Current time: <%= new java.util.Date() %>
- Your hostname: <%= request.getRemoteHost() %>
- Your session ID: <%= session.getId() %>
<%
Enumeration myList = request.getHeaderNames();
while( myList.hasMoreElements() )
{
String sName = myList.nextElement().toString();
String sMultiple = request.getHeader( sName );
out.println( sName.toUpperCase() + " = " + request.getHeader( sName ) + "
" );
System.out.println( sName.toUpperCase() + " = " + request.getHeader( sName ) + "
" );
}
%>