hello everybody,
I am in an acute problem, i will be grateful if anyone can help me.
i need to display image in the ".jsp" page. i have created a folder called "image" in the web folder of my project. in the image folder i am storing all the image.
in my database there is one column "ma_image", here i am stroring the filename of the image, say in my "image" folder the image name is "house.bmp" and in the database i am storing "house.bmp" in the "ma_image" column. i am just typing the name of image along with the full extension, i am not using any OLE object to store the image.
now i want to display the image after retrieving it from the "image" folder of my project. the location of "image" folder is:- E:\HomeJsp\web\image
my code is like this::
String path="image/";
//String path="E:/HomeJsp/web/image/";
out.println("<tr><td class=\"menu_tdtd\">
Image: </td> <td class=\"menu_td\" id='macImage"+f+"'>
![]()
</td></tr>");
// out.println("image displayed:-:"+path+"msg");
But i am not getting the image. my output is the filename of the image like-- "home.jsp" it is written in the <td> tag of the browser.
please get me a solution to this problem as soon as possible.
Thanks in advance.