On Tue, Apr 1, 2008 at 9:23 PM, Felix Meschberger <[EMAIL PROTECTED]> wrote:
> Hi Vidar,
>
>  It is currently not possible to register a servlet/script for "no
>  extension".
>
>  What you could do as a workaround (not complete, though) is to register
>  the servlet just for the GET method without an extension and send 404
>  (or so) on requests with an extension.

Well, yes, but a 404 would only return the error to the browser. I
really need to send the request down the Sling "request handler
chain", because other servlets might want to handle it.

>  If you can come up with a good solution to this problem (maybe an API
>  call such as
>
>    boolean canHandle(SlingHttpServletRequest)
>
>  in an interface, which a servlet may implement. If a servlet would be
>  selected which implements the method and returns false, the servlet
>  would be ignored for the resolution and the resolution process would
>  continue as if the servlet would not exist.
>
>  (yes, we discussed this already, but never got around to doing it. You
>  are of course welcome to provide something like that...)

:) OK, I'll see what I can come up with.

-- 
Vidar S. Ramdal <[EMAIL PROTECTED]> - http://www.idium.no
Akersgata 16, N-0158 Oslo, Norway

Reply via email to