• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Printing Zip Files

 
Ranch Hand
Posts: 52
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I need to extract and print some files present on a page on a click of button.

Has anyone tried this ever...

I am using JBoss server, JSP and a struts framework..
I only have download links to individual files present on page..


Please let me know if additional info required..

Thanks...
 
Sheriff
Posts: 67747
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I don't know what you mean by "printing" a zip file.

Are you just trying to create a link to one so that it can be dowloaded by the user?
 
Marshal
Posts: 28237
95
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
Vijendra Runwal
Ranch Hand
Posts: 52
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.

Thanks...
 
Sheriff
Posts: 13411
Firefox Browser VI Editor Redhat
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
reply
    Bookmark Topic Watch Topic
  • New Topic