• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

res.setContentType("text/xml");

 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I have an app that uses res.setContentType("text/xml");
It works fine in IE 5.5 + and Opera but does not wok in
Netscape (4.7+).
It just seems to ignore my res.setContentType. Any ideas?\

Thanks,
------------------
Kevin R. Gutch
 
Ranch Hand
Posts: 56
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hi
may be some of the closing tags are missing
check out
 
Saloon Keeper
Posts: 27808
196
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
It depends on what you mean by "doesn't work". My copy of Netscape has no MIME definition for XML, so if you serve me up a text/xml, it will simply attempt to save it to a local file, not display it in the browser. IE5, on the other hand has a special MIME handler that sends the XML through an internal XSLT processor and activeX so it can do that neat little expanding-outline trick and color the text. I don't know what Opera has in it.
 
kevin gutch
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I do not believe it is a Mime-Type problem.
I have seen that before (i.e. depending on the Opera settings it will either prompt for download or display on screen).
My code actually does nothing. When the button to download my file is clicked it linlks to another page that onLoad activates a servlet that conducts the Mime type.
I am getting to the page but nothing occurs after that.
As I said it works in IE 5.5 ad Opera.

reply
    Bookmark Topic Watch Topic
  • New Topic