I am using code < img src=”C:/NetBeanProject/images.jpg” alt=”abc” width=”42″ height=”42″/> to display an image to my jsp page. However, the image is not shown in the page. Is there any wrong with that code ?
I am using code < img src=C:/NetBeanProject/images.jpg alt=abc width=42 height=42/> to display an image
Share
In web-app, images and public resources must be located at folder under the root. You should have to create folder
"images"under"web"(netbeans project) and moveimages.jpginimagesfolder.In index.jsp,