Hi,
Thanks for your reply. I am not sure that i understand your approach was correct. When the save as dialog box was opened i saved the file as .xml file. But the same problem persist if i open that .XML file in word without internet.
I had the following line in my JSP page.
<%@ page contentType="application/msword;charset=utf-8" %>
If i open that page in my browser a save as dialog box will appear to save the file as word document. It is working fine till this as i expected to save the JSP page as word document.
The problem is, i had the css reference as
<link href="http://www.domain.com/sampleapp/css/sample.css" rel="stylesheet" type="text/css"/>
and the image as image tag with src pointing to my server path where the application is running.
Until if i have the internet connected the document shows all the tables well formatted as in css and the image is getting displayed. If i disconnect the internet the tables are not formatted and the image is not getting displayed. This is because the word document cannot able to connect to the css reference and image path in the server.
So how to embed the images inside the word document while saving the file from JSP as mentioned above so that i can see the images in word document eventhough internet was disconnected.
Thanks
Jai