RE: Mozilla Issues Viewing Servlet

2003-03-12 Thread Shapira, Yoav

Howdy,
It looks like a response content-type issue.  Likely the EJB or servlet
is not setting the content type to text/html.  IE 6.0 by default
interprets null content type as text/html, but Mozilla doesn't and
displays the raw information.

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: Jeremy Whitlock [mailto:[EMAIL PROTECTED]
Sent: Wednesday, March 12, 2003 11:22 AM
To: Tomcat
Subject: Mozilla Issues Viewing Servlet

Tomcat Users,
   I have Tomcat working properly and I have integrated OpenEJB.  I
ran the example servlet, HelloOpenEJB, and if I view the servlet from
Mozilla, the servlet works BUT I get to the point where the servlet
creates HTML to be viewed by the browser, I get the tags and the data.
If I browse to the same address from a Windows machine running IE 6.0,
I
get the desired results.  Here is what shows up in the browser when I
visit:  http://localhost:8080/examples/servlet/HelloOpenEJB from
Mozilla:

html
head
titleHello World!/title
/head
body
h1Hello World!/h1
/body
/html

   If I view it from IE 6.0, I get the desired results where the
tags are parsed and the output is HTML:

Hello World!

   Anyone know why this is happening?  Thanks,

Jeremy Whitlock --- MCP/MCSA
IT Manager for Star Precision, Inc.
Phone:  (970) 535-4795
Metro:  (303) 926-0559
Fax:  (970) 535-0780
Metro Fax:  (303) 926-0559
http://www.starprecision.com



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Mozilla Issues Viewing Servlet

2003-03-12 Thread Jeremy Whitlock
Yoav,
How would you suggest setting the content type?  I tried to it
but I don't think I did it right as I got the same results but with the
new changes to it.  Any ideas?  Thanks, Jeremy

-Original Message-
From: Shapira, Yoav [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, March 12, 2003 9:34 AM
To: Tomcat Users List
Subject: RE: Mozilla Issues Viewing Servlet


Howdy,
It looks like a response content-type issue.  Likely the EJB or servlet
is not setting the content type to text/html.  IE 6.0 by default
interprets null content type as text/html, but Mozilla doesn't and
displays the raw information.

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: Jeremy Whitlock [mailto:[EMAIL PROTECTED]
Sent: Wednesday, March 12, 2003 11:22 AM
To: Tomcat
Subject: Mozilla Issues Viewing Servlet

Tomcat Users,
   I have Tomcat working properly and I have integrated OpenEJB.  I
ran the example servlet, HelloOpenEJB, and if I view the servlet from
Mozilla, the servlet works BUT I get to the point where the servlet
creates HTML to be viewed by the browser, I get the tags and the data.
If I browse to the same address from a Windows machine running IE 6.0,
I
get the desired results.  Here is what shows up in the browser when I
visit:  http://localhost:8080/examples/servlet/HelloOpenEJB from
Mozilla:

html
head
titleHello World!/title
/head
body
h1Hello World!/h1
/body
/html

   If I view it from IE 6.0, I get the desired results where the
tags are parsed and the output is HTML:

Hello World!

   Anyone know why this is happening?  Thanks,

Jeremy Whitlock --- MCP/MCSA
IT Manager for Star Precision, Inc.
Phone:  (970) 535-4795
Metro:  (303) 926-0559
Fax:  (970) 535-0780
Metro Fax:  (303) 926-0559
http://www.starprecision.com



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




This e-mail, including any attachments, is a confidential business
communication, and may contain information that is confidential,
proprietary and/or privileged.  This e-mail is intended only for the
individual(s) to whom it is addressed, and may not be saved, copied,
printed, disclosed or used by anyone else.  If you are not the(an)
intended recipient, please immediately delete this e-mail from your
computer system and notify the sender.  Thank you.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Mozilla Issues Viewing Servlet

2003-03-12 Thread Jeremy Whitlock
Yoav,
I figured it out:

response.setContentType(text/html);

Thanks, Jeremy

-Original Message-
From: Jeremy Whitlock [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, March 12, 2003 9:45 AM
To: 'Tomcat Users List'
Subject: RE: Mozilla Issues Viewing Servlet

Yoav,
How would you suggest setting the content type?  I tried to it
but I don't think I did it right as I got the same results but with the
new changes to it.  Any ideas?  Thanks, Jeremy

-Original Message-
From: Shapira, Yoav [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, March 12, 2003 9:34 AM
To: Tomcat Users List
Subject: RE: Mozilla Issues Viewing Servlet


Howdy,
It looks like a response content-type issue.  Likely the EJB or servlet
is not setting the content type to text/html.  IE 6.0 by default
interprets null content type as text/html, but Mozilla doesn't and
displays the raw information.

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: Jeremy Whitlock [mailto:[EMAIL PROTECTED]
Sent: Wednesday, March 12, 2003 11:22 AM
To: Tomcat
Subject: Mozilla Issues Viewing Servlet

Tomcat Users,
   I have Tomcat working properly and I have integrated OpenEJB.  I
ran the example servlet, HelloOpenEJB, and if I view the servlet from
Mozilla, the servlet works BUT I get to the point where the servlet
creates HTML to be viewed by the browser, I get the tags and the data.
If I browse to the same address from a Windows machine running IE 6.0,
I
get the desired results.  Here is what shows up in the browser when I
visit:  http://localhost:8080/examples/servlet/HelloOpenEJB from
Mozilla:

html
head
titleHello World!/title
/head
body
h1Hello World!/h1
/body
/html

   If I view it from IE 6.0, I get the desired results where the
tags are parsed and the output is HTML:

Hello World!

   Anyone know why this is happening?  Thanks,

Jeremy Whitlock --- MCP/MCSA
IT Manager for Star Precision, Inc.
Phone:  (970) 535-4795
Metro:  (303) 926-0559
Fax:  (970) 535-0780
Metro Fax:  (303) 926-0559
http://www.starprecision.com



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




This e-mail, including any attachments, is a confidential business
communication, and may contain information that is confidential,
proprietary and/or privileged.  This e-mail is intended only for the
individual(s) to whom it is addressed, and may not be saved, copied,
printed, disclosed or used by anyone else.  If you are not the(an)
intended recipient, please immediately delete this e-mail from your
computer system and notify the sender.  Thank you.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]