I am unable to display above image in the jsp.I have provided 777 permission to this image but image is not displaying. I am using ubuntu OS.But in windows when we provide hard path like <img src="c:/erp/iimage1.png" />then it is working fine.
The value of the src attribute is really an URL, not just a path name. You could try specifying a file URL:
<img src="file:///home/erp/iimage1.png" />
But really, what you're trying to do is a bit strange, some people would even call it wrong. You're making the browser look for an image file on the local harddisk. If you browse to the webpage from an arbitrary other client computer, the browser will try to find the image on the local harddisk of that client computer, not on the server. Why would you want to do that?