June 1, 200917 yr This JSP webpage http://www.ricksclimb.org/PF/1/1/index.jsp works in IE but not in Firefox for example, just shows the code, any ideas. Drew
June 1, 200917 yr Your HTML tag might need changing to... <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
June 1, 200917 yr Author Your HTML tag might need changing to... <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> no didn't work
June 2, 200917 yr In your response headers, the mimetype is "text/plain" where it should be html or xml. IE guesses mimetype differently to other browsers. If you fix whichever application server (Tomcat, Apache, IIS, etc) is setting that wrongly, you'll probably have a solution.
June 2, 200917 yr Not necessarily... JSP means Java Server Page - and is a perfectly legitimate extension.
June 2, 200917 yr An amatuer input, should this not be your header, for the code to be read as html? <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml">
June 2, 200917 yr In your response headers, the mimetype is "text/plain" where it should be html or xml. IE guesses mimetype differently to other browsers. If you fix whichever application server (Tomcat, Apache, IIS, etc) is setting that wrongly, you'll probably have a solution. What he said. His doctype is correct for transitional and that wouldn't effect the page like that. The header that is sent to the browser with the page isn't set correctly meaning that the browser is displaying it as a plain text file as it should do (of course IE doesn't comply with such rules). Headers analysis for your page Header analysis for a functioning website
June 3, 200917 yr Author o.k. changed to my server on: http://designer-drew.com/PF/1/2/index.jsp , works now but how do I hide the code on firefox top right?? Cheers Drew
June 3, 200917 yr That's really bizarre. If you just take Firefox it looks like the page isn't going through the necessary preprocessor (ISAPI filter or whatever) to be processed as a JSP. However it's fine in IE, so now I'm afraid I'm stumped. It's almost certainly going to be something in your server config (I still don't know if you're using JBoss, Tomcat, or some other Java application server) - either the application server or the web server (IIS / Apache). So that's probably the place to start looking but I don't think I can help further...
Create an account or sign in to comment