GeeCON Prague 2014*
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
 
GeeCON Prague 2014
 
subject: difference between getting servletcontext from different ways