This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Servlets and the fly likes Where methods of ServletContext , HttpSession , HttpServletRequest are implemented ? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Where methods of ServletContext , HttpSession , HttpServletRequest are implemented ?" Watch "Where methods of ServletContext , HttpSession , HttpServletRequest are implemented ?" New topic
Author

Where methods of ServletContext , HttpSession , HttpServletRequest are implemented ?

Rushi Patel
Greenhorn

Joined: Sep 14, 2011
Posts: 17
As we know,
  • ServletContext
  • HttpSession
  • HttpServletRequest

  • are interface in JSP SERVLET api of Java..!

    We repeatedly use it in our code for different purposes, but i am still confused where and in which class all abstract method for given interfaces are implemented ?
    Like setAttribute, getAttribute , removeAttribute , getAttributeNames , getCookies , getContextPath...!

    Please explain it in brief with example if posible..! (I am newbie in this technology..!)

    Thanks in Advance...!
    Tim Moores
    Rancher

    Joined: Sep 21, 2011
    Posts: 2408
    That would be in classes that are part of the implementing servlet container. So it's different for each server. If you're interested, get the source code of, say, Tomcat and you'll find the classes that implement those interfaces.
     
    I agree. Here's the link: http://aspose.com/file-tools
     
    subject: Where methods of ServletContext , HttpSession , HttpServletRequest are implemented ?
     
    Similar Threads
    setAttribute()
    For JSP scopes of request and page, what type of object is used to store the attribut
    HttpSession and ServletContext - Difference?
    Memorizing API's
    j2eeCertificate Ques.