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 Java 8 in Action this week in the Java 8 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: 14687
    
  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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Where does ServletContect come in the hierarchy ?
 
Similar Threads
GenericServlet and HttpServlet
Basic Servlet Doubt
Why dont we use GenericServlet
jspInit()
Why HttpServlet also implements Serializable?