The JSP page IE cannot open the Internet site ...... Solution for terminated operations

Source: Internet
Author: User

The coincidence means that a variety of factors contribute to this event and are indispensable. There are several factors: ie in the system is ie6 (I am not sure or clear about the difference between Small versions) compile the jsp page and use the jsp source code automatically generated by the development tool. WdatePicker is used. the js time control and some writing sequence of Page code.

The reason for classic is obvious. From the coincidence above, we can see that ie6 is definitely a classic.

All the test code is as follows (except 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>

The following situation occurs when running access: (Note: under special conditions, oh !!!)

Known solutions:

Method 1: Remove <base ......> Code.

Method 2: complete the end tag of <base>. You must add </base> later, instead of <base ...... />

Method 3: Set <base……> Put the code after <script src = "js/My97DatePicker/WdatePicker. js" type = "text/javascript"> </script>

PS & note: the cache of ie6 is very serious. during testing, you need to clean up temporary files in time. Otherwise, you will be excited !!!

Why? How do I know ...... I just learned about the surface issues. There are articles related to the great gods on the Internet. You can search for them based on some of the keywords mentioned in this article. It depends on you !!!

Related Article

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.