• Post Reply Bookmark Topic Watch Topic
  • New Topic

browser attempts to save servlet rather than process it?  RSS feed

 
Rob Rohrer
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I had Tomcat5.5 working great last week and was working through examples, processing my practice servlets, when suddenly, after I compiled a new example (a whole new app with a new WEB-INF), my Firefox pulled up a prompt saying:

"you have chosen to open ListenTest.do which is a: .DO file... What should Firefox do with this file?... Open with [do_auto_file default] or save to disk..."

Same thing happens with I.E. -- I also checked past web apps I've written and it is also having this problem, where this wasn't a problem before.

Also, I don't see anything in my logs that look irregular, so am really am baffled...

does anybody know what causes this problem to occur and/or how to solve it?

Thanks so kindly... i'll never forget your solution.


[ December 11, 2005: Message edited by: Rob Rohrer ]
 
Scott Selikoff
author
Bartender
Posts: 4081
21
Eclipse IDE Flex Google Web Toolkit
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Your browser is confused about the page type. Set your page content type (both in JSP directives and HTML directives) to be text/html and this should solve your problem.
 
Rob Rohrer
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes, of course! thanks for pointing that out.. I had test/html, rather than text/html...
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!