My jsp lies at below location
http://myApp.com/myWebApp/customer/images/customer.jsp
My image(accessed thru customer.jsp) lies at
http://myApp.com/myWebApp/images/customer.gif
In image tag i am making the absoulte path as below
src="${param.contextPath}images/customer.gif"
just for info i am using param here becoz this is how we access request params in EL.
I was expecting that ${param.contextPath} will return /myWebApp/ but it is returning /myWebApp/customer/. Is there a way i can get just context path(not with customer namespace) i.e /myWebApp/ from request?
src="customer.gif"
. Or was there a reason for the context path? – Rosemare