First File code:
Code:
<a style="cursor: hand;"
onClick="window.open('test.jsp','','height=400,width=600,scrollbars=yes,resizable=no')">
test link - open word file
</a>
Second File : It is having the word file coding:
Code:
<%@ page contentType="text/html;charset=windows-1452"%>
<%
res.setContentType("application/msword");
res.setHeader("Content-disposition","attachment;filename=resume.doc");
%>
<%@ page language = "java" %>
<html>
<head></head>
<body>
<img src="test.jpg" width="150" height="150" border="0" alt="test"/>
<br>
</body>
</html>
With the help of the both of the code below you will able to get the solution for your problem.
Bookmarks