Results 1 to 2 of 2
  1. #1
    juhiswt is offline Member
    Join Date
    Mar 2011
    Rep Power

    Unhappy Displaying doc file in browser through JSP

    Can someone tell i can display my doc file in browser using JSP? I want to take file from database and then display it in broswer.

  2. #2
    Tolls is offline Moderator
    Join Date
    Apr 2009
    Rep Power

    Default Re: Displaying doc file in browser through JSP

    Stream it to the browser using the output stream available from the http response.
    This is best done using a servlet.
    Ensure you set the correct document types.
    Please do not ask for code as refusal often offends.

    ** This space for rent **

Similar Threads

  1. Printing file through browser
    By BobswYourUcle in forum New To Java
    Replies: 5
    Last Post: 07-18-2011, 03:53 PM
  2. displaying uploaded images on the browser
    By newton in forum Web Frameworks
    Replies: 3
    Last Post: 03-31-2011, 10:56 AM
  3. Replies: 1
    Last Post: 08-04-2010, 03:24 PM
  4. Displaying The Content of Doc files in Web Browser
    By mitesh1984_agrawal in forum Java Servlet
    Replies: 0
    Last Post: 04-15-2010, 08:41 AM
  5. File Browser
    By Troman in forum SWT / JFace
    Replies: 5
    Last Post: 09-09-2008, 01:02 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts