JSPs are not meant for this kind of thing; use a servlet instead that can handle the upload at the server side, and which then forwards the request to a JSP which can show the result. The Jakarta Commons FileUpload library can handle the file upload part.
Ping & DNS - updated with new look and Ping home screen widget
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.