Howard Moore wrote:

> How about changing the method signature of this function to include the
> ActionMapping that is about to be used?
>
> e.g.    protected boolean processPreprocess(ActionMapping mapping,
>                                                         HttpServletRequest
> request,
>                                                 HttpServletResponse
> response)
>                                                         throws IOException,
> ServletException;
>
> This would make it more convenient, for example, to log the Action that is
> about to be performed.
>

Sorry for the late response on this ...

Currently, at the point where processPreprocess() is called, the relevant
mapping has not yet been identified.  That happens in processMapping(), which
happens to be the next method that is called.

If you wanted to do something *after* the mapping was selected, one way would
be:

    protected void processActionMapping(String path,
        HttpServletRequest request) {
            super.processActionMapping(path, request);
            ... do something here ...
    }

> Howard Moore

Craig McClanahan

Reply via email to