You should be using a path relative to the current JSP. If you use
absolute path (/....), the web server ends up resolving it, which leads
it to the context root (/servlet in your case).
-cheers,
Manish
Thanks for your inputs Manish, Please can you tell me how I should use
the path relative to current jsp page. According to my knowledge , if
we specify the "/" in front of .jsp page the path is considered as
absolute path and from the document root. Please correct me if I am
wrong
D
> You should be using a path relative to the current JSP. If you use
> absolute path (/....), the web server ends up resolving it, which leads
> it to the context root (/servlet in your case).
>
> -cheers,
> Manish
Manish Pandit - 14 Nov 2006 17:28 GMT
You are right - adding / in front of the path makes it absolute with
the context root, but in this case the context root includes the
context itself (/servlet). You might want to try something like
../index.jsp or just ../../index.jsp based on where the other index.jsp
is, relative to the "current" index.jsp.
-cheers,
Manish