posted 23 years ago
Hi,
One of the simplest ways would be to Read the file and write it out to a web-accessible location. Then spawn a new window (using javascript) pointing to this location.
Alternatively, you will have to use a Jsp page (/servlet) exclusively for the {read file, write file to outstream}
Jsp #1 or even a static HTML page (depends on your needs)
filewriter.jsp
But, the above method needs 2 requests to the server. One for getting the main page (jsp/html) and the other to load the content in a new browser window.
Hope this helps.
Ashwin.
[This message has been edited by Ashwin Desai (edited April 27, 2001).]