This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

servlet not displaying is downloading

 
Luther Adon
Ranch Hand
Posts: 51
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks muchly for the assistance previously. I fixed the classpath and the placement and it works better.
Now a new problem, database connection and query work fine now but my computer is treating getting the servlet page not as a webpage but as a downloadable file of which I need to chose. The code that follows is all that is applicable:

I hope someone can help me I feel so close and none of my books cover this type of error.
Thank you in advance
[ August 21, 2002: Message edited by: Luther Adon ]
 
yogendra babu
Greenhorn
Posts: 17
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If the parameter to setContentType of response Object is other than text/html the servlet will start get downloading.Check what is the content type u set for the response object in your code
 
Luther Adon
Ranch Hand
Posts: 51
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you kindly,
works like a charm now.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic