`
javaEEdevelop
  • 浏览: 882298 次
  • 性别: Icon_minigender_1
  • 来自: 广州
文章分类
社区版块
存档分类
最新评论

Resource interpreted as Script but transferred with MIME type text/html

 
阅读更多

原来是我在web.xml中配了jsp-config标签

 

<jsp-config>

 

<taglib>

<taglib-uri>cjstl</taglib-uri>

<taglib-location>tld/c.tld</taglib-location>

</taglib>

<jsp-property-group>

<description>Special property group for JSP Configuration JSP example.</description>

<display-name>JSPConfiguration</display-name>

<!--url-pattern表示在那些后缀的文件,然后如果加了page-encoding和include-coda,表示在每个pattern的后缀文件的前面和后面加include-prelude和include-coda的文件  -->

<url-pattern>/* </url-pattern>

<el-ignored>true</el-ignored>

<page-encoding>UTF-8</page-encoding>

<scripting-invalid>false</scripting-invalid>

<include-prelude>/header.html</include-prelude>

<include-coda>/footer.html</include-coda>

</jsp-property-group>

</jsp-config>

 

上面红色的改成*.jsp,因为/*是匹配所有的页面,这样的话,在js里面的前面还体后面都会导入header.html和footer.html,

这样的的话,js文件的格式就出问题了是吧;

分享到:
评论

相关推荐

    asp+excel成绩/工资/物业多用途查询系统 v1.8

    3.更新:JS以.asp格式显示的错误:Resource interpreted as Script but transferred with MIME type text/html:。 4.对页面排版(html、css)都做了优化。 asp+excel成绩/工资/物业多用途查询系统是一个简单却用途...

    vue在index.html中引入静态文件不生效问题及解决方法

    然而,遇到"Resource interpreted as Stylesheet but transferred with MIME type text/html"这样的警告,意味着静态文件没有正确加载。这个问题通常与文件路径、配置文件设置或构建过程有关。下面将详细介绍这个...

    ----AS3学习笔记

    AS3(ActionScript 3)是Adobe开发的一种脚本语言,主要用于创建富互联网应用程序(RIA,Rich Internet Applications),尤其在Flash平台中应用广泛。Flex是Adobe推出的一个开源框架,用于构建和部署基于AS3的RIA...

    android 6.0 连wifi有感叹号,提示已连接WiFi无法连接网络.doc

    framework-base ... index 35e80ca..06a07c2 100755 ...@@ -671,7 +671,7 @@ public class NetworkMonitor extends... if (DBG) log("Empty 200 response interpreted as 204 response."); httpResponseCode = 204;

    GenesisDFMPE

    not added on as scripts to be interpreted slowly but as fully compiled and integrated functions of the system. Once installed, the customized features will be retained with each upgrade of the system ...

    前端开源库-interpreted

    "interpreted"这个开源库是专为前端开发设计的一个工具,它的核心功能在于提供一个测试输入/输出功能的节点tap包装器。Tap(Test Anything Protocol)是一种常用的测试规范,尤其在Node.js环境中广泛使用,它允许...

    Web Development with Go(Apress,2015)

    Its concurrency mechanisms, coupled with modern hardware, makes Go an effective general purpose programming language for a wide range of applications such as, system programming and embedded systems,...

    Dimeric.Server.Pages.

    Dimeric Server Pages (DSP) combine the convenience and flexibility of web development tools such as ASP and JSP, with the speed and robustness of Delphi. DSP allows you to build web pages that contain...

    Intergraph Standard File Formats (Element Structure)

    Some of the more esoteric elements are read in "raw data mode", but not interpreted. It does support lines, line strings, curves, bsplines, ellipses, arcs, and text elements, as well as extracting ...

    Simulink models with YALMIP components___HardTarget_yalmip_YALMI

    This implies that you cannot compile Simulink with YALMIP to a target (such as a DSP or something similar). At least I have not come up with any way to do this.Second since Simulink typically is used...

    Python GUI Programming Cookbook Second Edition 2nd

    Create a working GUI project as a central resource for developing your Python GUIs Easy-to-follow recipes to help you develop code using the latest released version of Python Book Description Python ...

    Introduction to Python Programming and Developing GUI Applications with PyQT

    - Verify the installation by running a simple PyQt4 script. 2. **Creating a Basic Application:** - Import necessary modules from PyQt4. - Create a main window or dialog. - Add widgets and layouts...

    Generic Statcom Model.rar_As One_digsilen_digsilent_tcr tsc_tsc

    A positive input is interpreted as capacitive reactive power while a negative value is interpreted as reactive power consumed by the TCR (thyristor controlled reactor). This implementation is shown ...

    Mastering JavaScript [PACKT 2016]

    JavaScript is a high-level, dynamic, untyped, lightweight, and interpreted programming language. Along with HTML and CSS, it is one of the three essential technologies of World Wide Web content ...

    asp.net mvc

    Open the project file in a text editor (the file with the .csproj or .vbproj file extension) and find the ProjectTypeGuid element. As the value of that element, replace the GUID {603c0e0b-db56-11dc-be...

    【Web挖掘】PageRank and Interaction Information Retrieval

    can be formally interpreted as a particular case of the Interaction Information Retrieval method; and thus, the PageRank values may be interpreted as neutral equilibrium points of the Web.

    Mastering JavaScript(PACKT,2016)

    JavaScript is a high-level, dynamic, untyped, lightweight, and interpreted programming language. Along with HTML and CSS, it is one of the three essential technologies of World Wide Web content ...

    Mastering.JavaScript.1785281348

    JavaScript is a high-level, dynamic, untyped, lightweight, and interpreted programming language. Along with HTML and CSS, it is one of the three essential technologies of World Wide Web content ...

    eac3to V3.17

    * "24.975" is now interpreted as "25.000/1.001" * Blu-Ray "sup" are demuxed with DTS set to 0 again, proper fix will come later * fixed: error code not set for "source file format could not be ...

Global site tag (gtag.js) - Google Analytics