Somnath, Nishan explained everything nicely. As far as using ../ is concerned, it worked fine in this case. But its not necessary that it will work in all the cases. Using ../ is a relative path. So if your jsp is accessed using the URL
then ../EnvDetailsServlet will point to
But if your jsp is accessed using the URL then ../EnvDetailsServlet will point to
This might be problematic. So using the complete path from the context path is the best choice...
Joined: Mar 04, 2009
Thanks all for your replies! It was of great help!!