在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 Context/status information The purpose of this document is to generate a DOI Foundation consensus paper on metadata, as a companion ...
在分配数据库登录用户的数据库访问权限的时候出现这种错误,如果选中某一个数据库的任何一个角色就会出现这个错误
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实现标识符对类的访问控制代码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 ...
已定义的变量有:var1=123,var2=this is a string 请输入您的表达式>>1+2 计算结果:3 XML格式显示计算过程: <?xml version="1.0" encoding="ISO-8859-1"?> <!DOCTYPE parsetree SYSTEM "parsetree.dtd"> <...
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 ...
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 ...
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 ...
已定义的变量有:var1=123,var2=this is a string 请输入您的表达式>>1+2 计算结果:3 XML格式显示计算过程: <?xml version="1.0" encoding="ISO-8859-1"?> <!DOCTYPE parsetree SYSTEM "parsetree.dtd"> <...
报错误error C2065: '_beginthreadex' :undeclared identifier
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 ...
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做的一个新闻项目所依赖的包升级到了最新的版本,其中从react-router(2.8.1)升级到react-router(4.1.2)中出现了很多问题, 故总结一下在升级过程中遇到的问题. 二.react-router,V4版本修改内容 1. ...
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 ...
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 ...
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芯片制造商 CPU标识符这个小应用程序可以检测你的iPhone的CPU芯片组。 对于 iPhone/6s,它还可以检测到A9芯片的制造商。编译的( 签名) 二进制文件将把芯片模型。设备模型和一个惟一 id ( ...
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
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