SEARCH
0-9 A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
Prev | Current Page 258 | Next

Larry Brown, Marty Hall, and Yaakov Chaikin

"Core Servlets and JavaServer Pages, Volume 2"


context = config.getServletContext();
filterName = config.getFilterName();
}
public void destroy() {}
}
Chapter 5 ?–  Servlet and JSP Filters 220
Listing 5.8 web.xml (Excerpt for logging filter)

xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation=
"http://java.sun.com/xml/ns/j2ee
http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"
version="2.4">


Logger

coreservlets.filters.LogFilter




Logger
/*


Listing 5.9
Partial contents of localhost.2006-04-14.log on
Tomcat
Apr 14, 2006 3:22:14 PM org.apache.catalina.core.ApplicationContext
log
INFO: 127.0.0.1 tried to access http://localhost/filtersrus/ on
Fri Apr 14 15:22:14 EDT 2006. (Reported by Logger.)
Apr 14, 2006 3:22:15 PM org.apache.catalina.core.ApplicationContext
log
INFO: 127.0.0.1 tried to access http://localhost/filtersrus/filter-
styles.css on Fri Apr 14 15:22:15 EDT 2006. (Reported by Logger.)
Apr 14, 2006 3:22:15 PM org.apache.catalina.core.ApplicationContext
log
INFO: 127.0.0.1 tried to access http://localhost/filtersrus/
images/air-filter.


Pages:
246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270