>> AOLA Framework

References: JSTL 1.2

Assumptions: Your apps server is Tomcat 5.x or above; JSTL 1.2 is now part of the Java EE 5 platform;

In a file called showandtell.jsp somewhere in the 'webapps' directory, it has something similar to the following:

<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>

     The remote host is ${header["host"]}<br>
     The user agent is ${header["User-Agent"]}<br>
     The encoding scheme(s) accepted is (are) ${header["Accept-Encoding"]}<br>			
			

will get you this output or similar:
 
     The remote host is www.any2any.info:8080
     The user agent is Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.11) Gecko/20071127 Firefox/2.0.0.11
     The encoding scheme(s) accepted is (are) gzip,deflate
			
Contact us in Hong Kong at +852 9532 5959 or at Skype 'any2any'
 Contact Us | Privacy Policy | About Us | Usage Agreement
 2004-2008 © Copyright by Any2Any Technologies, Ltd.   All Rights Reserved.     
Any2Any Help Last Update : (HongKong Time)
Staff Only | Bibliography | Publications | Research