1. Filters (1 messages)

    Hi all,

    The Servlet 2.3 spec. is somewhat ambiguous regarding the availability of certain functionalities in a filter.doFilter() method.

    The spec. doesn't specifically disallow the use of dispatcher in the doFilter() method. (The context is clearly available and the filter can access RequestDispatcher.)

    So the question is precisely this:

    Can a filter use the requestDispatcher (obtained either from the context or the request objects) to redirect requests, or not?

    Thank you very much in advance.

    /J

    Threaded Messages (1)

  2. Filters[ Go to top ]

    Yes it can. This may be done to avoid having the filter deal with the request.