• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

what is the difference

 
mani kanth
Ranch Hand
Posts: 57
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
in scwcd study kit page 85 there he mentioned

Servletcontext context=getServletConfig.getServletContext();

and

ServletContext context=getServletContext();

WHAT IS THE DIFFERENCE... WHAT IS THE ADVANTAGES AND DIS ADVANTAGES USING THESE IN DIFFERENT SITUATIONS..
 
Alex Cheung
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There is absolutely no difference. It is just another way of obtaining the ServletContext object.
 
mani kanth
Ranch Hand
Posts: 57
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thanks alex for clarifying my doubt
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic