¡GoConqr estrena diseño! Cuéntanos qué te parece.

Fichas

Sin título

vincewong22 Inglés 8 fichas

Fichas del conjunto (8)

  1. 1What are the steps to creating a filter?implement the filter interface
  2. 2What are the methods you need to implement the Filter interface?1. doFilter()
    2. init()
    3. destroy
  3. 3Where do you put filtering behaviour?doFilter()
  4. 4What the arguments of doFilter?1. ServletRequest
    2. ServletResponse
    3. FilterChain
  5. 5What are the generla 5 steps to creating a filter?1. create a class that implements the filter interface
    2. put filtering behaviour in doFilter
    3. call do Filter method of the FilterChain
    4. Register the filter w/ the appropriate servlets and JSP pages
    5 disable invoker servlet
  6. 6What is the basic code for doFilter method?public void doFilter(ServletRequest request,
    ServletResponse response,
    FilterChain chain)
    throws ServletException, IOException {
    …
    chain.doFilter(request,response);
    }
  7. 7Where do you declare the filter?in the deployment descriptor
  8. 8Can a filter read/write web application wide parameters?Yes, you use methods in ServletContext

Información

Descripción
Fichas sobre Sin título, creado por vincewong22 el 04/04/2015.
Creado por
vincewong22
Visitas
1
Valoración

Escríbenos

¿Sobre qué es tu mensaje?

¿Qué te parece el nuevo diseño?

¿Te gusta?