JSP pages default to "text mode" exceptions in IE browsers

problem description

now there is a java project front end implemented using jsp pages. Normally, the default "text mode" of accessing the project page is "IE8 standard", but an exception occurs in some IE browsers (IE8 and above), and the default "text mode" is "IE7 standard" when the page is opened.

Special circumstances

1. Some computers still have this problem when the IE browser version is the same (IE8 version: 8.0.6001.18702).

tried the following methods, but none of them worked

1. Modify the configuration of the wrong browser and uncheck [use compatibility View to automatically recover page layout errors].
2. Modify the page tag.
3. Use < meta > to set X-UA-Compatible to IE=8.

running environment

1. The mainstream system is windowsXP, with a small number of win7 or above.
2. The mainstream browser is IE8 (8.0.6001.18702), with a small number of IE10 or above.
3. Use tomcat6

jsp page header code

<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN">
<%@ include file="/page/commons/taglibs.jsp"%>
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title></title>
    
    <%-- IE8 --%>
    <meta http-equiv="X-UA-Compatible" content="IE=8">
    <meta http-equiv="pragma" content="no-cache">
    <meta http-equiv="cache-control" content="no-cache">
    <meta http-equiv="expires" content="0">    
    <meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
    <meta http-equiv="description" content="This is my page">
    

try

 <meta http-equiv="X-UA-Compatible" content="IE=Edge">

have you solved this problem at last? Now I have encountered the same problem as you. How did you solve it in the end?

Menu