Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Generate xhtml problem. Help!  RSS feed

George Yin
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello, everyone. I am a first time user here. I got a problem and hope I can find an answer here.
My servlet generates xhtml. When I test it, the browser treats it as html and can not show it properly. To show it properly the browser needs to invoke a browser plugin (Internet Explorer with MathPlayer plugin to show MathML). Obviously the browser does not invoke the plugin. When I save the generated output as a static file with xhtml extension, the browser shows the MATHML(math formulas) part correctly. I can not set ContentType to "text/xhtml" as there is no such MIME type.
Is there a workaround for this? Thanks for any idea?
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!