You want to print this extracted thing on the server? I ask because printing at the client side is entirely under the control of the person operating the browser.
Joined: Apr 17, 2006
The file needs to be printed at Client side.
Let me make it simple. Instead of zip files let's consider a single simple .txt or .doc file. On a JSP page I have name of the file say a.txt(it's a hyperlink, on clicking the link it downloads the file from server location). Now when user clicks on a.txt it's downloded. I want to implement additional functionality which can print the file directly(instead of downloading and then printing separately).
It can be like this, we can have a print button on the page, clicking on print will print the a.txt file contents directly.
Can we implement this functionality.
If yes, is it possible to implement it for multiple files.
You can not. For security reasons browser do not allow web applications to access the client's file system directly. The most you can do is prompt the user to download it and save it to the location of their choosing.