File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Servlets and the fly likes Loading file from server into browser window Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Servlets
Reply Bookmark "Loading file from server into browser window" Watch "Loading file from server into browser window" New topic
Author

Loading file from server into browser window

Richard Elsberry
Ranch Hand

Joined: Mar 14, 2001
Posts: 40
Hello,

I'm developing and jsp, with some struts, application and am required to keep a folder of image and pdf files outside the application context and on the server - ie c:\files\load. The files need to reside outside the application so that they are not wiped out when a new war file is deployed. I've done this many times for an images folder or something from within the app but can't figure out how to do this from the file system. Anybody know how this is done?

Thanks,
Richard
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 56204
    
  13

You'll need to write a servlet that can serve these files on your web app's behalf.

Not a JSP issue, so I've moved thisto the Servlets forum.


[Smart Questions] [JSP FAQ] [Books by Bear] [Bear's FrontMan] [About Bear]
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: Loading file from server into browser window
 
Similar Threads
dowloading file from a server problem
Softlink woes
Unable to get the image from external folder?
How to bind images and text together in same jsp page in easiest way?
Loading file from server into browser window