- serving JSP pages as text/plain



Tech Evangelism Graveyard
English US
15 years ago
3 years ago


(Reporter: Todd, Unassigned)






15 years ago
User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.4) Gecko/20030624
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.4) Gecko/20030624

Hi All,

   These two pages on show the html source code instead
of the page:

Would you show them how to correctly code these pages?
There contact info is somewhere on the contactus page above, if you
can read the html code.  I am guessing it is
Many thanks,

Reproducible: Always

Steps to Reproduce:

Comment 1

15 years ago
Hi All,

   I sent Bellawood the following letter:


Dear Mr. Sullivan,

   You have several HTML code errors on the following web pages
that display as HTML code instead of the intended page in
Mozilla 1.4 (also know as Netscape 7.1):


   The Mozilla "Tech Evangelism" group offers free consulting
to assist you in correcting these problems.  I have opened up a
trouble code for you at the following URL:

   I sincerely hope you will take advantage of this free service,
as you are currently dysfunctional on ~20% of the web browsers that
visit your site.  (I personally wanted some samples!  :-(  )

   Please let me know if I can be of any further assistance to you.

Many thanks,

Comment 2

15 years ago
The problem is not the page code.  The problem is that their server is saying
this is a text/plain page, so Mozilla treats it as plain text.

The solution is to fix the server setting.  You really should write them
yourself for faster action.  You can always refer them to this bug's URL as a
Ever confirmed: true
Priority: -- → P4
Summary: source code displayed instead of html page → - serving JSP pages as text/plain

Comment 3

13 years ago
Another similar case?
Is this another case where their server is saying
this is a text/plain page, so Firefox treats it as plain text?
Notice that the "sign-in" button is totally disfunctional.
Hitting "Enter" doesn't work either.
It's I.E. only unless you think it's fisable on their server.
EXACTLY what should I tell them to do?
Thanks! Clair

Comment 4

13 years ago
BTW, fisable = fixable when I'm typing better!
Not being one to sit on my duff, I went to:
to find out their server OS
Linux 	Apache/1.3.27 (Unix) mod_jk/1.1.0
and then found:
"Fix Web Servers to Support Firefox Content"
So do I email them to just:
"Update your Apache httpd.conf file to include these directives, and then
restart httpd or signal it to reread the config files."
(and include these lines?)
AddType application/xhtml+xml         .xhtml
AddType application/http-index-format .hti
AddType text/html                     .html
AddType text/css                      .css
AddType text/xsl                      .xslt
AddType application/x-javascript      .js
AddType application/xml               .xml /* or .. */
AddType text/xml                      .xml
AddType image/svg+xml                 .svg
(or based on what's REALLY needed to make Firefox work on the site: can I leave some of these off?
Or am I just totally wrong about all of this?!)
Thanks for listening. Clair

Comment 5

13 years ago
Clair, those settings will help for static pages however for pages generated by
server side scripts (e.g. jsp pages), the script needs to send the proper

In this case, they have redesigned their site and now use asp pages which
display properly in Firefox.

Last Resolved: 13 years ago
Resolution: --- → FIXED

Comment 6

13 years ago
(In reply to comment #5)
Thanks Bob.
I see, you mean for the original site, it's now:
but unfortunately they don't run the site I need to use!
So is it obviously server side b/c it's index.jsp ? Duh Clair!
Is there anything I can email them on "how-to" make their server side script 
send the proper content-type? 
A url or something to get me started would be most appreciated!

Comment 7

13 years ago
Just ask them to send their jsp pages as text/html. They should be able to
figure it out. You can point them to
<> however.
Product: Tech Evangelism → Tech Evangelism Graveyard
You need to log in before you can comment on or make changes to this bug.