Hello friends,
I want to display an image in my JSP using expressions (<%=abc%>)tag. But, the problem is that the JSP does not show the image.
I store the path retrieved from database (MS SQL) in a "path" variable and then try to display it in JSP using <img> tag.
The code is as follws:
<img src="<%=path%>" mce_src="<%=path%>" width="260" height="261" border="2" >
where, path="temp/" + image; //temp is the folder containing image
//image=image name corresponding to user logged in,since,image is stored with name same as user name.
Is there anything else that should be included in the code?
Is the src path right?
In my other JSPs where i directly give image names, images are displayed. Then why not here? I think the problem is in src="<%=path%>" , but can't figure it out.
Please help.
THANK YOU.