Wednesday, October 4, 2006 10:38 AM
JSP has a few implicit objects which are available to the developer "by default", that is you don't need to create/instantiate any objects. So the references to these objects are already there you just need to know the names.
The HttpSession object is called session, the HttpServletRequest object is called request. There is no reference to a ServletContext object BUT there is a reference to a PageContext object which has a reference to a ServletContext, you use pageContext.getServletContext() to get a reference to it.
//In your JSP
getRequesterID(pageContext.getServletContext(), session, request);
That should do it.
For a list of all the implicit objects available go HERE