Re: can jigsaw point all requests at one servlet?

rob sanders wrote:

> Hi:
>
> I've just started using servlets and jigsaw.
>
> How do I configure jigsaw to route _all_ incoming requests to the same
> servlet?

Yes, you can write a filter [1] or use the RedirecterFrame [2].

> I want to be able to do some initial processing universally on every
> request sent to the jigsaw server.

Filters [1] are made for that, and the api is simple. Take a look at
the filters sample code page [3].

> I want to "proxy" all hits through my "entry" servlet. Is is possible?

Humm, the servlet api is not adapted for that, because the servlet write
the reply directly on the socket. You should use a Jigsaw filter instead.

[1] http://www.w3.org/Jigsaw/Doc/Programmer/writing-filters.html
[2] http://www.w3.org/Jigsaw/Doc/User/redirection.html
[3] http://www.w3.org/Jigsaw/Doc/Programmer/samples/Overview.html#filters

Regards, Benoit.

--
- Benoît Mahé -------------------------------------------------------
                      World Wide Web Consortium   (W3C)
                    Architecture domain - Jigsaw Engineer

                http://www.w3.org/People/Mahe  - bmahe@w3.org
---------------------------------------------------------------------

Received on Friday, 30 April 1999 11:14:18 UTC