File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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


Win a copy of Spring in Action this week in the Spring forum!
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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: difference between getting servletcontext from different ways