Diplaying of picture images in File operations !!!!

I'm doing a project in file operations. I'm able to read the file from the directories and it contents in the jsp in tabular format. I want to show the picture images(.jpeg or .jpg images) in the jsp page. First i'm going to particular directory and then showing the details of files in the jsp page. Then, on by clicking of that particular link the user can able to access the contents of files in that directories. Then in the jsp i'm showing the contents of a particular file in a tabular format. Here shome images are also there , but it is not necessary that it'll be abailable for every folder so i've to check for this also. Could any one help me that how resolve this problem.

Which one will be better should i put a images in the file directory or should i put it in the text files. Which one will be better for displaying it accurately. And if that the image is not available in that particular directory then it should display the text which will be available in that file only. Here i'm putting the if condition for checking purpose.

Could any one help out !!!!!

in advance thanks a lot................

[1146 byte] By [Navneet_Singha] at [2007-11-26 15:04:22]
# 1

> Could any one help me that how resolve this problem.

Which problem? That you need to do some work?

>Which one will be better should i put a images in the file directory or

> should i put it in the text files.

The latter doesn't even make sense, the former is bad.

Let the URLs in the <a> and <img> tags be HTTP GET requests to a servlet. The servlet will find out which picture you want and will serve the file through the response's output stream, with the correct MIME type set. That way you can embed the pictures in HTML just like you'd do as if they were in a public directory, but without actually having to provide this directory.

CeciNEstPasUnProgrammeura at 2007-7-8 8:54:02 > top of Java-index,Java Essentials,New To Java...