concerning this regard'In my application, i want to send one MS-word file to client side,but only in read-only mode. I am sending this file through IFRAME tag,here i m choosing this file at run time. How can i display this file at browser side only in read-only mode'
I don't know how to change an MS Word document into a read-only document automatically when it is downloaded. Frankly, I don't understand why you are concerned about making it read-only. The document the user receives in the download is a copy, not the original. The users can change it all they like, and it still won't affect the original.
If you still need to make it read-only, I'd suggest looking at the apache POI project. This project provides an API for manipulating Microsoft format files. Check out the documentation, and you may find a way to do what you need to do.