File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Servlets and the fly likes How to render documents on to Pages Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "How to render documents on to Pages" Watch "How to render documents on to Pages" New topic
Author

How to render documents on to Pages

Swaroop Kunduru
Ranch Hand

Joined: May 22, 2006
Posts: 32
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.


Regards,
Swaroop Kunduru
Nitesh Kant
Bartender

Joined: Feb 25, 2007
Posts: 1638

I feel you may get better answers in Servlet forum. Moving ....


apigee, a better way to API!
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 39547
    
  27
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.


Ping & DNS - updated with new look and Ping home screen widget
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: How to render documents on to Pages
 
Similar Threads
Looking to find a solution
Looking to find a solution
Stroring Word Documents into MYSQL Database
Help required for identifying classes
Stroring Word Documents into MYSQL Database