In my user screen I have view link, if I click this link it will go to servlet and open one word document. It is opening properly, but while opening the attachment it generate one dialog box like file Open, Save or Cancel button, if I click open after that it is opening the document. But my query is it should not display this dialog box, once I click the link it should open the document automatically using HttpServletResponse. Can any one help me to avoid the pop up window?
Sample Code
response.setContentType("application/msword");
response.setHeader("Content-disposition","attachment; filename=testing.doc");
If I use inline then the file name is not coming, full URL coming as a header.
Please help me.
Regards
Aarthi