October 2002
Beginner
816 pages
23h 32m
English
| 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 ... |
Read now
Unlock full access