Hi,
How to link the url to an image? Why the following code is not working?
<%
String Logo = null;
if (httpSession.getAttribute("Logo")!=null) Logo = (String) httpSession.getAttribute("Logo"); %>
<% if(Logo!=null){%>
<%if(Logo.equalsIgnoreCase("image.jpeg")){%>
<a href="http://www.google.com/" target="_self">
<img src="pics/image.jpg" border="0" alt="Logo"></a>
<%}else{%>
<img src="pics/<%=Logo%>" alt="Logo"/><%}}%>
Any one please help me on this. When I'm hitting the image it is not opening the google page. I'm not getting any error message. Is it possible to write like this in "if" block?