• Post Reply Bookmark Topic Watch Topic
  • New Topic

JSP and Mozilla

 
Carl Parrish
Ranch Hand
Posts: 60
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm trying to view a jsp page in mozilla and all I'm getting is plain text. So I'm assuming that somewhere I have to add the jsp mime type to my apache httpd.conf file. Does anyone know the syntax I should use here? right now I'm trying
AddType text/html .jsp
Or if I'm way off. Any ideas as to what this could be?
Carl P.
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13078
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The thing that is missing from your description of the problem is the name of the JSP/servlet engine that you are using. The Apache server by itself does not know how to compile and run JSP, your best bet is to download Tomcat from jakarta.apache.org and follow the instructions for installing on an Apache server.
Bill
 
Carl Parrish
Ranch Hand
Posts: 60
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ops sorry. Yes I'm using Tomcat (4.0.3)
 
Carl Parrish
Ranch Hand
Posts: 60
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
okay now this seems to only be a problem for the Error pages. The example pages and ones I make myself are fine. But the error pages just comes as blank text. Any ideas as to why this may be?
 
Marcus Green
arch rival
Rancher
Posts: 2813
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think the HTTP spec asks for a couple of carriage return line feeds before the start of the HTML (check the details). IE will attempt to render any old rubbish whereas Mozilla (well Netscape definitly) expects an HTML response. I used to get this problem when programming webby stuff with Perl but I would have thought that JSP things would look after that for you.
Marcus
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!