Map paramMap = request.getParameterMap();
ServletContext context = config.getServletContext();
/* use the ServletContext.log method to log
param names/values */
context.log("doFilter called in: " + config.getFilterName() +
" on " + (new java.util.Date()));
context.log("Snooping the parameters in request: " +
((HttpServletRequest) request).getRequestURI());
Iterator iter = paramMap.entrySet().iterator();
while (iter.hasNext()){
Map.Entry me = (Map.Entry) iter.next();
context.log((String)me.getKey() + ": " + ((String[]) me.getValue())[0]);
}
chain.doFilter(request,response);