Thanks for reply Bill. Is there anyway to setPrincipal on HttpServletRequest? can I cast to concreate class that implemented that HttpServletRequest? Which class is it?

anil

anil

All I want to do is setPrincipal from a servlet filter.

Bill Barker wrote:

<[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED]
Hi All

I trying setPrincipal on request on tomcat 5.0.30. But servlet.api.jar that comes with tomcat does not have setPrincipal method on HttpRequest class. I look at the tomcat source and on AuthenticationBase class uses that method to setPrincipal. Am I using wrong servlet api jar? which one should I use?


AuthentictorBase calls setPrincipal on Tomcat's internal Request object. While this happens to implement HttpServletRequest, it is entirely different from the HttpServletRequest that is seen by the webapp.



thanks for any replies in advance.

anil




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to