I have a servlet 2.3 filter that needs to forward requests based on whether 
they will be eventually be mapped to an action by struts.

Ideally there would be
  boolean canProcess(HttpServletRequest, String uri)
in RequestProcessor, where URI overrides the one in request unless it
is null.

I do not mind having to subclass RequestProcessor to implement this.
That would be made much easier, however, if the default implementation
of processMapping did not call response.sendError when no mapping is
found. I'd suggest that it just returns null, and the error handling
code is moved out into the process() method itself.

As it is, I may be able to wrap the response into a dummy object that
ignores the sendError call, and try to disable the logging of the
error, but that's quite a hack.

Thanks,
Chris

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to