users@servlet-spec.java.net

[servlet-spec users] Re: Implementation of new Servlet functionality?

From: arjan tijms <arjan.tijms_at_gmail.com>
Date: Thu, 21 Jul 2016 13:04:16 +0200

Hi,

On Wed, Jul 20, 2016 at 11:00 PM, Greg Wilkins <gregw_at_webtide.com> wrote:

> So what should the mapping be for Named dispatchers? left at the
> original values with the original servlet name?
>

I guess the latter, as request.getServletPath() also doesn't change now if
you a dispatch (i.e. forward) via a named dispatcher.



> Or do we need a new mapping type for Named?
>

Dispatching is not really mapping IMHO. It's not for nothing a different
chapter in the spec (9 vs 12).

Maybe it would be useful to have an additional method or methods for the
dispatch type? This can partially be discovered today via request
attributes such as javax.servlet.include.request_uri, but may still be
useful.

Maybe something like getDispatch(), which returns a "Dispatch", which then
has methods like getDispatchType() with values FORWARD, INCLUDE,
NAMED_FORWARD, NAMED_INCLUDE, a method to reveal the exact value of the
dispatch as used in the getNamedDispatcher call etc. Just thinking out loud
here ;)

Kind regards,
Arjan Tijms




>
> cheers
>
>
>
>
>
>
> --
> Greg Wilkins <gregw@webtide.com> CTO http://webtide.com
>