Originally posted by Avishek Kar:
I have uploaded doc file in database and want to fetch it and show it as html
can anybody provide me the source code for the same.
If you mean by 'doc file' a Microsoft
Word document, then you can't.
Not with JSP alone anyway.
There are third party libraries such as POI for working with Microsoft Office formats from
Java. You might need to look into one of those.
If you can reasonably expect your users to have Microsoft Office or something that can work with Office files (Like Open Office), then you might consider writing a servlet that streams the document, as is, to the browser.