• 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 render documents on to Pages

 
Ranch Hand
Posts: 40
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello All,

I have to render documents on to webpages for server. When user click a document link it should popup on a window. The document type may be a word file or a pdf or an image.

The documents will be in the Database as Blobs.

Please give me clues to render them on to browser and Word docs should be editable.

The Database is Oracle, at Server we where using Hibernate and Spring Framework. At UI We where using struts1.2

The user may not have word editor.

Please give me a clue how to start.

Regards,

Swaroop Kunduru.
 
Bartender
Posts: 1638
IntelliJ IDE MySQL Database Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I feel you may get better answers in Servlet forum. Moving ....
 
Rancher
Posts: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You can find an example of how to stream binary content (like a PDF or Word file) from a servlet in the Simple Stream example in the Code Barn, http://faq.javaranch.com/java/CodeBarnServlets

What happens at the client -whether the file is displayed, or saved to disk- depends on browser settings, and on user behavior; it's out of the hands of the web app.

If the user has neither Word or OpenOffice, then the user won't be able to edit Word files; there are browser plugins that can display such files, though.
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic