aspose file tools
The moose likes Servlets and the fly likes HttpServletRequest Class methods Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Groovy Fundamentals video training course this week in the Groovy forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "HttpServletRequest Class methods" Watch "HttpServletRequest Class methods" New topic

HttpServletRequest Class methods

Sumi Festus

Joined: Feb 04, 2005
Posts: 14
Hi!! I was just reading through some servlet class and came across this code: Principal principal=req.getUserPrincipal();

Here req is an object of the HttpServletRequest class. principal is an object of the

Is the getUserPrincipal() method implemented in the HttpServletRequest class? I read the sun techdocs and couldnt find the method listed in the HttpServletRequest class.
Christophe Verré

Joined: Nov 24, 2005
Posts: 14688

It is defined in the HttpSerlvetRequest interface :

[My Blog]
All roads lead to JavaRanch
Sumi Festus

Joined: Feb 04, 2005
Posts: 14
Thanks a lot.....
I agree. Here's the link:
subject: HttpServletRequest Class methods