File download dialog box is coming while opening the document using Servlet

Discussion in 'Software' started by aarthi, Apr 24, 2007.

  1. aarthi

    aarthi

    Joined:
    Apr 24, 2007
    Messages:
    1
    The user screen I've 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 document it generate one dialog box like file Open, Save or Cancel button(file download), if I click open after that it is opening the document. But my query is it should not display this file download dialog box, once I click the link it should open the document automatically. 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");

    out.write(outDO.getImageData());

    Please help me.

    Regards
    Aarthi
    aarthi, Apr 24, 2007
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. S.Rodgers
    Replies:
    13
    Views:
    1,665
    Doug G
    Dec 16, 2005
  2. Thaqalain
    Replies:
    0
    Views:
    688
    Thaqalain
    Jun 30, 2005
  3. shyam
    Replies:
    1
    Views:
    1,049
  4. cisco_query

    Applet to Servlet to HTML

    cisco_query, Jan 27, 2008, in forum: Software
    Replies:
    0
    Views:
    1,180
    cisco_query
    Jan 27, 2008
  5. jatin_1183

    Pass Parameter from midlet to Servlet

    jatin_1183, Mar 17, 2008, in forum: Software
    Replies:
    0
    Views:
    1,548
    jatin_1183
    Mar 17, 2008
Loading...

Share This Page