wood burning stoves 2.0*
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 Murach's Java Servlets and JSP this week in the Servlets 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.
I agree. Here's the link: http://aspose.com/file-tools
subject: Where does ServletContect come in the hierarchy ?
Similar Threads
GenericServlet and HttpServlet
Why dont we use GenericServlet
Basic Servlet Doubt
Why HttpServlet also implements Serializable?