aspose file tools*
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes Confusing response from a servlet?? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "Confusing response from a servlet??" Watch "Confusing response from a servlet??" New topic
Author

Confusing response from a servlet??

Joe Harry
Ranch Hand

Joined: Sep 26, 2006
Posts: 9351
    
    2

Guys,

I have a servlet say LoginServlet and when I try to access it, I get a message that says,
you have chosen to open
LoginServlet
which is a:application/octet-stream...

I checked my response content type and it is just text/html even after this I'm getting such a message???


SCJP 1.4, SCWCD 1.4 - Hints for you, Certified Scrum Master
Did a rm -R / to find out that I lost my entire Linux installation!
Joe Harry
Ranch Hand

Joined: Sep 26, 2006
Posts: 9351
    
    2

Could there anything related to Tomcat as far as this issue is concerned??
Napu Sun
Ranch Hand

Joined: Apr 18, 2006
Posts: 33
Have you made the content in your response object is really a html format?
Joe Harry
Ranch Hand

Joined: Sep 26, 2006
Posts: 9351
    
    2

Yes, my response content is a HTML...but even after this I'm getting this strange thing as the response.
saqib sarwar
Ranch Hand

Joined: Mar 30, 2007
Posts: 77
i think something is changing your response header "CONTENT-TYPE" . you should try to comment complete code in your doGet or doPost which ever you are using, save changes, compile servlet, restart tomcat and try to access it again.

if it goes safe then uncomment code blocks or lines step by step to check the bug line
[ April 30, 2007: Message edited by: saqib sarwar ]

SCJP5 95%, SCWCD 85%<br />Knowledge is the Life of Mind
Joe Harry
Ranch Hand

Joined: Sep 26, 2006
Posts: 9351
    
    2

I tried all sorts of troubleshooting but no success...
Joe Harry
Ranch Hand

Joined: Sep 26, 2006
Posts: 9351
    
    2

I tried all sorts of troubleshooting but no success...
Sandeep Vaid
Ranch Hand

Joined: Feb 27, 2006
Posts: 390
Can you paste your code and web.xml file so that we can have a look and figure the problem out ?
 
Don't get me started about those stupid light bulbs.
 
subject: Confusing response from a servlet??