Suppose I want to import a word file with `doc` extension into my HTML document, along with the metadata, and display it in a `div` accordingly. So all existing stuff in the `doc` file, like texts in varied formats (bold, italics, different size, letter spacing, line-height, overline, unerline..), images (both their positions and sizes), graphs, charts (the JSP will generate the necessary graphics to provide a similar looking graph or chart. It needs only the data), lists, etc.

So is there any way to do this? Is there any standardized Word API which will give us this data? Or any JSP library that can do it? If not, then what do I need to know and do to get this?