Working on NetBeans 6.8 ... Java web application
Assume the current location/directory is (default) web folder and the file executed is index.jsp which is in the web folder.
I have created a folder named 'a1' inside the web folder and folder 'a2' inside the 'a1' folder.
web --> a1 --> a2
Each folder contains Image.png
<a href="Image.png">Image</a> // works when clicked on the link
<a href="/a1/Image.png">Image</a> // works when clicked on the link
<a href="/a1/a2/Image.png">Image</a> // does not work !!!!!!!
Any file which is more than 1 folder deep generates the error 'resource not found'
Why is this happening?