webtier@glassfish.java.net

Re: [webtier] Way to "Find" Faces Servlet?

From: Ryan Lubke <Ryan.Lubke_at_Sun.COM>
Date: Mon, 04 Jan 2010 09:01:55 -0800

If you're using Servlet 3.0, you can use the new programmatic APIs
available on the ServletContext to
obtain information on all registered Servlets.

Anything earlier than 3.0, probably means parsing the web.xml yourself.

On 1/3/10 12:23 PM, Lincoln Baxter, III wrote:
> I'm trying to figure out a way to dispatch a request to Faces Servlet,
> but I'm not sure how to discover how Faces Servlet is mapped. Is there
> any way to do this?
>
> Basically, I want to be able to do something like this:
>
> 1. Request comes in for /some/url/
> 2. Filter intercepts /some/url/ and understands that it belongs to Faces
> 3. Filter forwards request to Faces Servlet (even though Faces Servlet
> is not mapped to /some/url/ )
>
> So that means that I need either a blind forward, or a way of
> determining some URL that *does* resolve to Faces Servlet. Once the
> request is in Faces, it does not matter that there is no view file
> corresponding to the address.
>
> Thanks,
> Lincoln
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: webtier-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: webtier-help_at_glassfish.dev.java.net
>
>