tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Vik P. Solem" <>
Subject Re: Servlet in the middle... in the middle.. in the middle
Date Fri, 01 Dec 2000 01:35:59 GMT
I think that you could try to implement something by taking a look at how Tomcat
is doing the web server work.  One of the advantages of open source ...

The other solutions that we've used for this require the use of multiple
1) Web server(authenticate via basic authentication) -> servlet engine (which
serves .html, .gif files)
    ... but here the username must be passed on to the servlet engine with each
request to allow access control at the servlet engine.
2) servlet engine (proxy servlet which makes HTTP connection ) -> other HTTP
server with .html, .gif files

Of course, although I have used variants of these, I haven't tested either of
these with the Tomcat engine. ... yet ;-)


"Bragg, Casey" wrote:

> Neat solution!  Thanks Vik.
> One snafu though.... this only protects JSPs...  I also need to protect html
> and gif files.
> Thanks again...
> ...Casey
> ==============================================
> Casey Bragg - Software Engineer
> Allegiance Telecom, Inc.  Dallas, TX
> 214-261-8679 -
> ==============================================
> -----Original Message-----
> From: Vik P. Solem []
> Sent: Thursday, November 30, 2000 4:26 PM
> To:
> Subject: Re: Servlet in the middle... in the middle.. in the middle
> As I mentioned on the same thread "MVC problem" (after I had a few false
> starts...) you can do your authentication in a single servlet and then
> use <%@ page extend="MySecureServlet"%> in your pages so that they all
> extend your servlet with the desired functionality.
> -Vik

Vik P. Solem    781-344-1133
VikTech Systems Inc.   Built right, now.

View raw message