• Post Reply Bookmark Topic Watch Topic
  • New Topic

ServletContext getContext(String uripath)

 
Anuj Kumar
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
what is the use of ServletContext getContext(String uripath) method...
and how to use it please clear it thanks in advance
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
First, see the question and answer in your other post (these two probably would have done better if they were in the same post):
http://www.coderanch.com/t/365346/Servlets/java/significance-Context-Path

Once you understand that, then the description in the API should be enough to answer this question:
http://java.sun.com/j2ee/1.4/docs/api/javax/servlet/ServletContext.html#getContext(java.lang.String)
 
Happiness is not a goal ... it's a by-product of a life well lived - Eleanor Roosevelt. Tiny ad:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!