tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bill Barker" <>
Subject Re: Servlet chaining, set remoteUser?
Date Fri, 24 Jan 2003 05:06:23 GMT
Since this only really has a chance of working with a 2.3+ container (like
Tomcat 4.x), I'd probably use a Filter instead of chaining Servlets.
However, the idea is the same.  You create a HttpServletRequestWrapper that
overrides getRemoteUser and getUserPrincipal (and, possibly, isUserInRole)
that understands the Domino authentication.  You then pass the Wrapper along
in the chain so that the destination Servlet gets the correct values for the

"Jim Henderson" <> wrote in message
> I have an existing Servlet that requires an authenticated user
> (HttpServletRequest.getRemoteUser()).  However, the Servlet can now be
> invoked from another application on a Domino server which the user has
> already signed on to.    The Domino server will redirect the request to my
> Servlet and pass the user ID in a file.  To avoid changing my original
> Servlet I want to try Servlet Chaining.  However, how do I set the userID
> the redirected request stream?  Is that possible?
> Thanks!
> Jim Henderson

To unsubscribe, e-mail:   <>
For additional commands, e-mail: <>

View raw message