This week's book giveaway is in the OCPJP forum.
We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line!
See this thread for details.
The moose likes Servlets and the fly likes Where does ServletContect come in the hierarchy ? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Where does ServletContect come in the hierarchy ?" Watch "Where does ServletContect come in the hierarchy ?" New topic
Author

Where does ServletContect come in the hierarchy ?

jose chiramal
Ranch Hand

Joined: Feb 12, 2010
Posts: 266
I have Servlet , ServletConfig and Serializable ( all 3 are interfaces)

Also GenericServlet(Abstract class) implements all the above metnioned interfaces.

Also HttpServlet(Abstract class) extends GenericServlet.

Also UserDefinedServlet extends HttpServlet.




HttpServletRequest extends ServletRequest and HttpServletResponse extends ServletResponse.

Now where does ServletContext come in the hierarcy ?

Christophe Verré
Sheriff

Joined: Nov 24, 2005
Posts: 14688
    
  16

ServletContext is used by ServletConfig.


[My Blog]
All roads lead to JavaRanch
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

What do you mean, where does it come in the hierarchy? Its place in the hierarchy is shown explicitly in the Javadocs, which are available by clicking on the linkified ServletContext in any of these posts. It *has* no hierarchy, it simply is.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: Where does ServletContect come in the hierarchy ?