Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Servlet is being dowloaded

 
Naga Venkata Pradeep Namburi
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I came across a queer incident today. When i tried to invoke a servlet, browser is downloading a file instead of executing it. I was able to execute the servlet in one of my colleague's systems. Is there any settings in browser level or system level which could induce such behaviour.

Thanks,
N.N.V.Pradeep
 
Tim Moores
Bartender
Posts: 2687
36
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Which Content-Type header is being set by the servlet? How is the browser configured for that content type?
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64631
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Which container? I can't imagine any browser setting that could cause this.
 
Paul Clapham
Sheriff
Pie
Posts: 20763
30
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Naga Venkata Pradeep Namburi wrote:When i tried to invoke a servlet, browser is downloading a file instead of executing it.
What exactly gets downloaded?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic