wood burning stoves*
The moose likes Servlets and the fly likes difference between getting servletcontext from different ways Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "difference between getting servletcontext from different ways" Watch "difference between getting servletcontext from different ways" New topic
Author

difference between getting servletcontext from different ways

Rahul P Kumar
Ranch Hand

Joined: Sep 26, 2009
Posts: 188
What is the difference when I get servletContext from getServletContext() and from request.getSession().getServletContext()?
Paul Sturrock
Bartender

Joined: Apr 14, 2004
Posts: 10336

Nothing really, two ways of doing the same thing.


JavaRanch FAQ HowToAskQuestionsOnJavaRanch
 
jQuery in Action, 2nd edition
 
subject: difference between getting servletcontext from different ways
 
Similar Threads
Obtain ServletContext from Request
getInitParameter() method
ServletContext Vs ServletConfig
RequestDispatcher
question about the method to get ServletContext