I have a JSP page, when the user requests it all the contents are opened in a word document. For this i am using the following in the JSP page: <%@ page contentType="application/vnd.ms-word" %> But there is one problem in this. Because I have used <table> tags extensively, in word it displays lines within each table(for each <tr> and <td> . If I comment out this line then the contents are displayed properly in HTML without any lines. There is only a problem when transferring contents to Word.