昨天发现在JSP中的指令总是被eclipse提示“Undefined attribute name "isELIgnored"”
<%@ page isELIgnored="false" %>
经过研究发现解决之道很简单,打开部署描述符。
把servlet版本号改为2.4或以上即可。
既
<web-app id="WebApp_9" version="2.4" xmlns="http://java.sun.com/xml/ns/j2ee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">
<listener>
<listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
</listener>
<context-param>
<param-name>contextConfigLocation</param-name>
<param-value>/WEB-INF/beans-all.xml</param-value>
</context-param>
<filter>
<filter-name>encodingFilter</filter-name>
<filter-class>org.springframework.web.filter.CharacterEncodingFilter</filter-class>
<init-param>
<param-name>encoding</param-name>
<param-value>UTF-8</param-value>
</init-param>
</filter>
<filter-mapping>
<filter-name>encodingFilter</filter-name>
<url-pattern>*.do</url-pattern>
</filter-mapping>
<filter>
<filter-name>hibernateFilter</filter-name>
<filter-class>
org.springframework.orm.hibernate3.support.OpenSessionInViewFilter</filter-class>
<init-param>
<param-name>sessionFactoryBeanName</param-name>
<param-value>sessionFactory</param-value>
</init-param>
</filter>
<filter-mapping>
<filter-name>hibernateFilter</filter-name>
<url-pattern>*.do</url-pattern>
</filter-mapping>
<filter-mapping>
<filter-name>hibernateFilter</filter-name>
<url-pattern>*.jsp</url-pattern>
</filter-mapping>
<servlet>
<servlet-name>beans</servlet-name>
<servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class>
<load-on-startup>0</load-on-startup>
</servlet>
<servlet-mapping>
<servlet-name>beans</servlet-name>
<url-pattern>*.do</url-pattern>
</servlet-mapping>
<!-- session timeout -->
<session-config>
<session-timeout>10</session-timeout>
</session-config>
<!-- Index Page -->
<welcome-file-list>
<welcome-file>index.jsp</welcome-file>
<welcome-file>index.html</welcome-file>
</welcome-file-list>
<!-- Error Page -->
<error-page>
<error-code>500</error-code>
<location>/page/error.jsp</location>
</error-page>
<error-page>
<error-code>404</error-code>
<location>/page/404.jsp</location>
</error-page>
<error-page>
<error-code>403</error-code>
<location>/page/403.jsp</location>
</error-page>
</web-app>
分享到:
相关推荐
webdriver不能启动chrome浏览器,报module ‘selenium.webdriver’ has no attribute”问题解决办法 1、先配置下环境变量(谷歌浏览器为例) 步骤:下载好浏览器驱动chromedriver.exe(下载地址:...
AttributeError: module 'tensorflow.compat.v1' has no attribute 'contrib'的问题您具体怎么解决问题具体解决的seq_loss.py文件
python3 server.py 127.0.0.1 8888 ...AttributeError: module ‘os’ has no attribute ‘exit’ 部分代码入下: from socket import * import sys,os #实现登录 def do_login(s,user,name,addr): for i in user: i
-----------==========PowerDesigner与Eclipse同步开发=========------------ 1.通过PowerDesigner生成Java源代码,放入Eclipse工程中 1.1 生成工程源代码 1.1.1 生成工程 打开PowerDesigner,New-->Object-...
调试递归神经网络(RNN)的时候出现如下错误: AttributeError: module 'tensorflow.contrib.rnn' has no attribute 'core_rnn_cell' 顺便问一句,资源分怎么设置免费啊
包含2篇attribute高级应用文章,以及相应的代码。 代码关键处,都有详细注释。 看过后,你会对attribute,context有更深刻的认识
成功解决AttributeError: 'str' object has no attribute 'to'
Attribute在NET中的应用 讲解在NET中如何自定义自己的特性(Attribute)如何使用
Attribute Aware Pooling for Pedestrian Attribute Recognition
In fact the growing interest in AOP can be attributed to the better available tools and this book teaches the reader everything they need to understand AOP and apply it successfully to their own ...
File Attribute
<xsd:attribute name="name" type="xsd:string" /> <xsd:attribute name="type" type="xsd:string" /> <xsd:attribute name="mimetype" type="xsd:string" /> <xsd:element name="resheader"> ...
你是否对 c# attribute 感到不解,如在有一个类定义前加了一个[]是代表什么,这就是c# 的attribute ,这里有两个简单直观的实例,让你直观的、容易的理解attribute的用法,
补充知识:Pandas使用DataFrame出现错误:AttributeError: ‘list’ object has no attribute ‘astype’ 在使用Pandas的DataFrame时出现了错误:AttributeError: ‘list’ object has no attribute ‘astype’ 代码...
C#的Attribute
Property和Attribute的区别
c语言中不常用的知识,__attribute__的使用方法
attribute_用法_section_部分.doc
本文描述了attribute文法,基于该文法优化Java代码,是高级的形式化的编译优化技术。可以作为高级编译器的优化的参考文档。
Attribute标记属性_资料收集 Attribute 标记属性 影响编译 .net c#