Day 4

Quiz

A1: Servlet chaining can be performed two ways, using the include() and forward() methods of the RequestDispatcher interface.
A2: To write a filter for a servlet, you must override the doFilter(), getFilterConfig(), and setFilterConfig() methods of the Filter interface. The actual functionality of the filter is written in the doFilter() method. After you write and compile the filter, it must be associated with a servlet. You do so in the web.xml deployment descriptor file.
A3: ServletContext events such as creation, termination, adding an attribute, removing an attribute, and replacing an attribute can be intercepted by a listener of a ServletContext.
A4: Creation, termination, adding an attribute, removing an attribute, and replacing ...

Get Sams Teach Yourself BEA WebLogic Server 7.0™ in 21 Days now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.