File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Servlets and the fly likes Servlet is being dowloaded Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Servlet is being dowloaded" Watch "Servlet is being dowloaded" New topic
Author

Servlet is being dowloaded

Naga Venkata Pradeep Namburi
Greenhorn

Joined: Apr 04, 2008
Posts: 13
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
Rancher

Joined: Sep 21, 2011
Posts: 2408
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

Joined: Jan 10, 2002
Posts: 61415
    
  67

Which container? I can't imagine any browser setting that could cause this.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Paul Clapham
Bartender

Joined: Oct 14, 2005
Posts: 18651
    
    8

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?
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Servlet is being dowloaded