• 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

how to preview word document inside jsp page

 
Ranch Hand
Posts: 119
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi , experts I would like to ask if I can preview my word document exist in my webserver inside jsp page before printing or downloading the file

thanks a lot
 
Rancher
Posts: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
What is the time and money budget for this? While I could think of ways to do this using freely available software, the effort will likely take so long that a commercial solution might be cheaper to put into place, depending on the salaries of everyone involved.
 
Saloon Keeper
Posts: 27762
196
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
That question doesn't even make sense.

Before anyone outside of the server can see anything in a JSP page, they have to download the JSP from the server to a client machine. So the "damage", so to speak, is already done.

Beyond that, Internet Explorer is banned, courtesy of a $500 billion lawsuit, from displaying embedded content such as JSPs and PDFs within the browser window that displays the JSP. So IE users always have to receive the document as a "download".
 
Ulf Dittmer
Rancher
Posts: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Tim seems to assume that "preview" means some kind embedded content or object, but there are various approaches to this that do not need that kind of complication. But to give informed advice on this we'd really need to know more about the use case and its attendant constraints.
 
Tim Holloway
Saloon Keeper
Posts: 27762
196
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Ah. The phrase "preview my word document" implied to me the actual viewing of the document, full-content, full-scale.
 
alsoumahi alBatal
Ranch Hand
Posts: 119
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

The phrase "preview my word document" implied to me the actual viewing of the document, full-content, full-scale.


yes , you are right , I need to give a user option to read the content for whatever document he wants to download , but before downloading he can view the word document in embedded page or frame , if he likes the document he can download instead of downloading every document to read the content . you might tell why to view the word document because I have many files I can not describe each one in order to let him understand the content of the file.


thanks a lot


 
Ulf Dittmer
Rancher
Posts: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The point of a preview is generally to provide an abbreviated or small-scale view of something. Maybe the text of the first paragraph of a document, or a one-tenth reproduction of an image. Facilitating previewing the entire document makes little sense, IMO, and comes with the complications Tim mentioned. You might just as well let the user download the entire document directly.
 
Author and all-around good cowpoke
Posts: 13078
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
If this was my problem I would look into automating the creation of an abstract of each document as you put it in the system into some form compatible with HTML.

Processing each Word document again and again for each client would be a silly waste of resources. Each document would then have a matching abstract file you could show quickly on demand.

Bill
 
Tim Holloway
Saloon Keeper
Posts: 27762
196
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Just to repeat myself. If you "preview" the entire document, you have to download the entire document. There are no plugins that allow reading just partial word documents via web interface that I've ever heard of, and thanks to the anti-plugin lawsuit (Eolas patent violation), IE isn't likely to support one even if the other browsers did.

Thumbnails/excerpts (Ulf) and/or abstracts (William) are what I'd recommend.
 
reply
    Bookmark Topic Watch Topic
  • New Topic