I have a jsp/servlet application which uses the weblogic server. My application is creating text files from the user inputs. I am storing these files in a particular directory in unix. I need my jsp to display the text file on a click of a button. How do I get the file and display it?? All I know is the location and file name of the text file. Please help.
Take a look at SimpleStream at http://simple.souther.us It streams images from under the WEB-INF directory.
If your JPEGs are being created in a folder within your app, you can pretty much use it as is. If not, you can use a FileInputStreamt to get the stream and use the rest to ship it down to the browser.