• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Liutauras Vilda
  • Henry Wong
  • Devaka Cooray
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Al Hobbs
  • Carey Brown
Bartenders:
  • Piet Souris
  • Mikalai Zaikin
  • Himai Minh

Issue with response.setCOntentType and IE

 
Ranch Hand
Posts: 142
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi all ,


response.setContentType("application/msword");
response.setHeader("Content-disposition","inline; filename=test.doc");
o = response.getOutputStream();
o.println("<html>");
o.println("<head>");
o.println("<title>Runtime Model Structure</title>");
o.println("</head>");
o.println("<body>");
o.println("<h3>Runtime Model Structure</h3>");
o.println( generateConetentToDIsplay());
o.println("</body>");
o.println("</html>");

I have the above code in my program , it works perfectly in IE6 with SP1 and win2000 and it opens a word doc with the above content , where as the same code i try in WIN XP and IE6 with SP2 , the window opwns and just closes it .

Please let me know if i am missing something

Regards
Sunil.s
 
Ranch Hand
Posts: 2874
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I found IE a buggy browser sometimes and have similar views for windows too. So, can you try some other machine with same specs. I mean WinXP and IE 6.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic