Win a copy of Functional Reactive Programming this week in the Other Languages 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: 2955
46
  • 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: 65229
95
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
Posts: 21416
33
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