If we look at the URL requested, it says that ServletA is in directory servlet, so .. will mean go one directory above and then find the requested resource.
In this case /servlet can be a logical directory only, it might not exist also. So far so good.
Now lets say we change the <url-pattern> to something like
Now it means that ServletA is existing in directory ben and this time if we give something like
It will say that, the requested resource is not found, because it is searching the requested resource in the directory /servlet/html/hello.jsp.
I wanted to ask that, in this case, should SERVLET be the directory existing on root directory or it can be logical name also, then in that case
how would the RequestDispatcher relative path should have been given. Please help.
--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)