• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to render documents on to Pages

 
Swaroop Kunduru
Ranch Hand
Posts: 37
  • Mark post as helpful
  • send pies
  • 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.
 
Nitesh Kant
Bartender
Posts: 1638
IntelliJ IDE Java MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I feel you may get better answers in Servlet forum. Moving ....
 
Ulf Dittmer
Rancher
Posts: 42968
73
  • Mark post as helpful
  • send pies
  • 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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic