My apologies for confusion in folder names. Here the contextroot specifies application name. Actually the application name is NewDashboard.
The application has WebContent folder which has WEB-INF, image folders.
I changed the folder names from earlier webapps as it was confusing. The folder structure is -
-NewDashboard
--WebContent
--image
--WEB-INF
Location of image file - C:\Work\NewDashboard\WebContent\image\cal.gif
Address (URL) from IE Properties -
http://localhost:8080/NewDashboard/WebContent/image/cal.gif
Browser View Source, Image Source value - <img src="/NewDashboard/WebContent/image/cal.gif" alt= "No image available" width="150" height="40" border="0">
I have tried these EL's but image is not getting displayed -
EL - <img src="${pageContext.request.contextPath}/WebContent/image/cal.gif" alt= "No image available" width="16" height="16" border="0">
EL - <img src="${pageContext.request.contextPath}/image/cal.gif" alt= "No image available" width="16" height="16" border="0">
When i View Source and in that i change image path to actual path on system (C:\Work\NewDashboard\WebContent\image\cal.gif) image is displayed.
Please let me know if some mistake is done and something is missing.