Hi All,
I want to know the difference between
getContext(
String url) and getServletContext()
Both of them return the ServletContext object though and one takes a path to the specified resource.
Inspite of using getServletContext(), first we can take the real path of the application and pass that path
to getContext() and get the ServletContext object. So i am confused what is the difference between two of
them? Can getContext(String url) can be used alternatively instead of getServletContext().
Thanks.
Ben,
--Lost in preparation of SCJP and SCWCD--
"Start writing a new chapter, for if you live by the book you'll never make history." (Ben Sobel)