JSP page ie cannot open Internet site Resolution of terminated operations

Time:2021-3-5

The reason for the coincidence is that all kinds of factors contributed to the event, which is indispensable. Several factors are: ie in the system is IE6 (I’m not sure about the difference between the specific small versions), JSP source code written by JSP page and automatically generated by development tools, and the use of WdatePicker.js This time control, as well as some writing order of the page code.

It’s obvious that IE6 is a classic, as can be seen from the coincidence above.

All test codes are as follows (except for the control related files to be referenced)

Copy codeThe code is as follows:
<%@ page language=”java” import=”java.util.*” pageEncoding=”utf-8″%>
<%
    String path = request.getContextPath();
    String basePath = request.getScheme()+”://”+request.getServerName()+”:”+request.getServerPort()+path+”/”;
%>
<!DOCTYPE html>
<head>
    <base href=”<%=basePath%>”/>
    <title></title>
    <script src=”js/My97DatePicker/WdatePicker.js” type=”text/javascript”></script>
</head>
<body></body>
</html>

Run access will occur as follows: (Note: under special conditions, oh!)

JSP page ie cannot open Internet site Resolution of terminated operations

Known solutions:

Method 1: remove < base >Code, if you can’t use it

Method 2: to complete the end tag of < base >, you must add < / base > after it instead of < base…. ” />

Method 3: set < base >The code is < script SRC = “JS / My97DatePicker/ WdatePicker.js “Type =” text / JavaScript “> < / script > after

PS & Note: IE6 cache problem is quite serious, you need to clean up the temporary files in time when testing, otherwise you will have hallucination!!!

Why? How do I know I just understand the surface of the problem, there are related articles on the Internet, according to some of the keywords mentioned in this article search, rely on you!!!

Recommended Today

Rest command line tool demo

https://www.bilibili.com/vide… In this tutorial, we’ll show you how to use therestyCommand line tools. cd ~ export PATH=/usr/local/openresty/bin:$PATH which resty It’s usually this path. We can go through it-VOption to check its version number. resty -V If you use usPre built Linux binary packageInstall openresty, then you should install itopenresty-restyBag. dnf list installed openresty-resty Because it’s […]