JSP page IE cannot open Internet site ... Resolved method of terminated Operation _JSP programming

Source: Internet
Author: User

The reason for coincidence is that all kinds of factors contribute to this event. A few factors are: ie in the system is IE6 (the difference between the specific version of the small I am not very sure or clear), write JSP page and use the development tools automatically generated JSP source code, the use of wdatepicker.js this time control, as well as some of the writing order of the page code.

The reason that the classic, very obvious, from the above coincidence can be seen, IE6 is absolutely classic.

All test code is as follows (except for the control related file to be referenced)

Copy Code code 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>
<base href= "<%=basePath%>"/>
<title></title>
<script src= "Js/my97datepicker/wdatepicker.js" type= "Text/javascript" ></script>
<body></body>

Running the access will happen as follows: (note: Under special conditions Oh!!!) )

Known solutions:

Method 1: Remove the <base ......> code, if you can't use it.

Method 2: Complement <base> end tag, you must add </base>, instead of <base .../>

Method 3: Place the <base ......> code in the <script src= "Js/my97datepicker/wdatepicker.js" type= "Text/javascript" ></ After script>

ps& Note: IE6 cache problem is more serious, the test needs to clean up the temporary files in time, otherwise you will have hallucinations!!!

Specific reasons? I don't know...... I just learned the superficial problem, the online has the relevant articles of the great gods, can be based on some of the keywords mentioned in the search, depending on you!!!

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.