You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by an...@shaw.ca on 2006/02/17 00:04:49 UTC

sePrincipal

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?

thanks for any replies in advance.

anil

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: sePrincipal

Posted by an...@shaw.ca.
Kind of. If I can set the principal on each request, then all down 
stream processing can go with that. Problem is that concreate class does 
not implement that. atleast as a public method.

anil

Anyone know how to get around this?? I am looking at Acegi filter code, 
how they do that.


Ken Johanson wrote:

> anil_a@shaw.ca wrote:
>
>> 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, is this what you are looking for?
> http://issues.apache.org/bugzilla/show_bug.cgi?id=38658
>
> ken
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: sePrincipal

Posted by Ken Johanson <to...@kensystem.com>.
anil_a@shaw.ca wrote:
> 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, is this what you are looking for?
http://issues.apache.org/bugzilla/show_bug.cgi?id=38658

ken



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: sePrincipal

Posted by an...@shaw.ca.
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:

><an...@shaw.ca> wrote in message news:43F50511.4060304@shaw.ca...
>  
>
>>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: users-unsubscribe@tomcat.apache.org
>For additional commands, e-mail: users-help@tomcat.apache.org
>
>
>  
>


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: sePrincipal

Posted by Bill Barker <wb...@wilshire.com>.
<an...@shaw.ca> wrote in message news:43F50511.4060304@shaw.ca...
> 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: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: Best IDE for dev of Tomcat Servlet?

Posted by Joe Riopel <go...@gmail.com>.
I've tried both Eclipse and Netbeans and they're both great. I just
seem to be more productive with Netbeans.  It's unexplainable !!!!!

-Joe

On 2/16/06, Glen Mazza <gr...@verizon.net> wrote:
> Pulkit Singhal wrote:
> > I would say Eclipse web edition...but you have to figure out how to
> > integrate it with tomcat...shld be able to find a tutorial on that out there
> > somewhere.
> >
>
> I use Eclipse WTP but don't bother integrating it with Tomcat--I use the
> manager Ant tasks[1] for autodeploying WAR files instead.  This also
> creates some IDE-independence.
>
> Glen
>
> [1]
> http://tomcat.apache.org/tomcat-5.5-doc/manager-howto.html#Executing%20Manager%20Commands%20With%20Ant
>
> > On 2/16/06, Mike Reynolds <to...@yahoo.com> wrote:
> >
> >>What is the best development environment for developing a Tomcat servlet?
> >>
> >>
> >>---------------------------------
> >>Brings words and photos together (easily) with
> >>PhotoMail  - it's free and works with Yahoo! Mail.
> >>
> >
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: Best IDE for dev of Tomcat Servlet?

Posted by Glen Mazza <gr...@verizon.net>.
Pulkit Singhal wrote:
> I would say Eclipse web edition...but you have to figure out how to
> integrate it with tomcat...shld be able to find a tutorial on that out there
> somewhere.
> 

I use Eclipse WTP but don't bother integrating it with Tomcat--I use the 
manager Ant tasks[1] for autodeploying WAR files instead.  This also 
creates some IDE-independence.

Glen

[1] 
http://tomcat.apache.org/tomcat-5.5-doc/manager-howto.html#Executing%20Manager%20Commands%20With%20Ant

> On 2/16/06, Mike Reynolds <to...@yahoo.com> wrote:
> 
>>What is the best development environment for developing a Tomcat servlet?
>>
>>
>>---------------------------------
>>Brings words and photos together (easily) with
>>PhotoMail  - it's free and works with Yahoo! Mail.
>>
> 
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: Best IDE for dev of Tomcat Servlet?

Posted by Pulkit Singhal <pu...@gmail.com>.
I would say Eclipse web edition...but you have to figure out how to
integrate it with tomcat...shld be able to find a tutorial on that out there
somewhere.

On 2/16/06, Mike Reynolds <to...@yahoo.com> wrote:
>
> What is the best development environment for developing a Tomcat servlet?
>
>
> ---------------------------------
> Brings words and photos together (easily) with
> PhotoMail  - it's free and works with Yahoo! Mail.
>

Best IDE for dev of Tomcat Servlet?

Posted by Mike Reynolds <to...@yahoo.com>.
What is the best development environment for developing a Tomcat servlet?

		
---------------------------------
Brings words and photos together (easily) with
 PhotoMail  - it's free and works with Yahoo! Mail.