![]() |
simple jsp image path
Please see what is wrong with this code.
I want to check if the image is available in the following location ${basePath}images/newcars/assets/75/${vehicle.trimId}.jpg . if the image is available the <img src=””> should be set to this path. If the image is not available then the <img src=””> should be set to ${basePath}images/common/imagenotavailable70X48.jpg. <c:choose><c:when test="${thumbpath != null}"> <c:set var="thumbpath" value="${basePath}images/newcars/assets/75/${vehicle.trimId}.jpg" /> </c:when> <c:otherwise> <c:set var="thumbpath" value="${basePath}images/common/imagenotavailable70X48.jpg" /> </c:otherwise></c:choose> <img src="${thumbpath}" alt="${vehicle.make} ${vehicle.model}" title="${vehicle.make} ${vehicle.model}" width="64" height="48" /> |
| All times are GMT +1. The time now is 02:17 PM. |
Powered by vBulletin®
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.