`
lydia4me
  • 浏览: 24396 次
  • 性别: Icon_minigender_1
  • 来自: 北京
社区版块
存档分类
最新评论

tomcat7中EL表达式报The identifier is not a valid java identifier

阅读更多
在tomcat 7中默认会检查EL表达式中是否会有java关键字。比如Foo#getClass()#name()中有class关键字,${foo.class.name}这样就是会报错,解决方法是${foo['class'].name},再如Session#isNew() ,要${pageContext.session['new']}这样表达。

参考https://issues.apache.org/bugzilla/show_bug.cgi?id=50147

或者有另种比较暴力的解决方法,就是修改配置文件,不让检查java关键字。在tomcat 6中“org.apache.el.parser.SKIP_IDENTIFIER_CHECK”默认是false的。

解决方法:

$CATALINA_BASE/conf/catalina.properties 增加

org.apache.jasper.compiler.Parser.STRICT_QUOTE_ESCAPING=false
org.apache.el.parser.SKIP_IDENTIFIER_CHECK=true

$CATALINA_BASE/conf/Catalina/localhost/webapp.xml 增加

<Context path="" docBase="/vmind/vmind"  useHttpOnly="false"  debug="0" reloadable="false">

或修改server.xml的context选项,增加useHttpOnly="false"  即可。
分享到:
评论

相关推荐

    The Digital Object Identifier initiative: metadata implications

    The Digital Object Identifier initiative: metadata implications Context/status information The purpose of this document is to generate a DOI Foundation consensus paper on metadata, as a companion ...

    SQL Server&quot;错误 21002: [SQL-DMO]用户 * 已经存在问题解决

    在分配数据库登录用户的数据库访问权限的时候出现这种错误,如果选中某一个数据库的任何一个角色就会出现这个错误

    S7A驱动720版本

    in the demo mode, or the value 1, when the driver has found a valid key, and therefore is licenced. This function is also available via the OPC server interface. The same item-ID address format has...

    Java_implementation_of_access_control_identifier_c_The Class

    Java实现标识符对类的访问控制代码Java implementation of access control identifier code of the class

    计算机网络第六版答案

    14. If the two ISPs do not peer with each other, then when they send traffic to each other they have to send the traffic through a provider ISP (intermediary), to which they have to pay for carrying ...

    C++支持的表达式解析

    已定义的变量有:var1=123,var2=this is a string 请输入您的表达式&gt;&gt;1+2 计算结果:3 XML格式显示计算过程: &lt;?xml version="1.0" encoding="ISO-8859-1"?&gt; &lt;!DOCTYPE parsetree SYSTEM "parsetree.dtd"&gt; &lt;...

    CAN Specification Version 2.0

    who do not need the identifier range offered by the extended format, can rely on the conventional 11 bit identifier range (’standard format’) further on. In this case they can make use of the CAN ...

    DevArt UniDAC v.3.70.0.18 (15-Jun-2011) (with Source Code)

    Bug with "SQLite function is not linked" in the SQLite data provider is fixed Adaptive Server Enterprise data provider Support for the AnsiNull option in the ASE provider is added Bug with getting ...

    微软内部资料-SQL性能优化5

    For example, if the clustered index is on (lastname, firstname) and a nonclustered index is on firstname, the firstname value will not be duplicated in the nonclustered index leaf rows. Note The ...

    boost::spirit解析表达式domo

    已定义的变量有:var1=123,var2=this is a string 请输入您的表达式&gt;&gt;1+2 计算结果:3 XML格式显示计算过程: &lt;?xml version="1.0" encoding="ISO-8859-1"?&gt; &lt;!DOCTYPE parsetree SYSTEM "parsetree.dtd"&gt; &lt;...

    解决error C2065: '_beginthreadex' :undeclared identifier

    报错误error C2065: '_beginthreadex' :undeclared identifier

    Devart LinqConnect 3.1

    The behaviour is changed: when selecting a property in the Model Explorer, the corresponding entity on the diagram does not expand if it is collapsed The behaviour is changed: the DATETIME2 data type ...

    servlet2.4doc

    The doFilter method of the Filter is called by the container each time a request/response pair is passed through the chain due to a client request for a resource at the end of the chain. doGet...

    详解升级react-router 4 踩坑指南

    上午把近日用React做的一个新闻项目所依赖的包升级到了最新的版本,其中从react-router(2.8.1)升级到react-router(4.1.2)中出现了很多问题, 故总结一下在升级过程中遇到的问题. 二.react-router,V4版本修改内容 1. ...

    developing android application with adobe air.part3.rar

    Chapter 7 : Multitouch Technology A Brief History What Is Multitouch and Gesture? The Multitouch Class The GestureEvent Class The TouchEvent Class The GestureWorks Library Designing for Touch ...

    FlexGraphics_V_1.79_D4-XE10.2_Downloadly.ir

    connector's end point moving, the link is breaks if the move was not on one of the flex-controls connection points. Contain False as default. - ADD Added ControlDocRect parameter in event ...

    高性能消息传输机制Aeron.zip

    Can not go back to a wrapped value.Term Offset: Identifier of a single byte within the Term. Always start at 0. This is the number of the byte within a given term starting from the beginning.Frame...

    CPU-Identifier, 检查你的A9芯片制造商.zip

    CPU-Identifier, 检查你的A9芯片制造商 CPU标识符这个小应用程序可以检测你的iPhone的CPU芯片组。 对于 iPhone/6s,它还可以检测到A9芯片的制造商。编译的( 签名) 二进制文件将把芯片模型。设备模型和一个惟一 id ( ...

    PC-IDENTIFIER-09.01.00.00-01.17.00.15

    KB2558 Desigo CC 2.1 SR1, ABT-Pro, XWP: Lease time of S7DOS expired at 31.12.2015 https://support.industry.siemens.com/cs/us/en/view/109482349

    留学生React Native计算器作业-待视频演示.zip

    The user can enter a number to each of the two textinput boxes, then click/tap either of the four images ...such identifier is present in the code; 2. Find four mathematical images (+, -, x, ÷) fro

Global site tag (gtag.js) - Google Analytics