aspose file tools*
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 EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Where does ServletContect come in the hierarchy ?" Watch "Where does ServletContect come in the hierarchy ?" New topic

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é

Joined: Nov 24, 2005
Posts: 14687

ServletContext is used by ServletConfig.

[My Blog]
All roads lead to JavaRanch
David Newton

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.
It is sorta covered in the JavaRanch Style Guide.
subject: Where does ServletContect come in the hierarchy ?
Similar Threads
Why HttpServlet also implements Serializable?
Basic Servlet Doubt
GenericServlet and HttpServlet
Why dont we use GenericServlet