开发者

javax.el.ELException: The identifier [return] is not a valid Java identifier

开发者 https://www.devze.com 2023-03-11 10:57 出处:网络
I have a page url, which looks like: http://mydomain.com/nodes/32/article/new?return=view After installing tomcat 7, when trying to access it I got this exception:

I have a page url, which looks like:

http://mydomain.com/nodes/32/article/new?return=view

After installing tomcat 7, when trying to access it I got this exception:

/nodes/${param.id}/article/new?return=${param.return}
contains invalid expression(s): javax.el.ELException: The identifier [return] is not a valid Java identifier as required by section 1.19 of the EL specification (Identifier ::= Java language identifier). This check can be disabled by setting the system property org.apache.el.parser.SKIP_IDENTIFIER_CHECK to true.

Any ideas why I get that? To fix it should I change this开发者_C百科 property in tomcat only?


return is a reserved keyword in the Java Programming Language(tm). But luckily there is an alternative spelling. Try param['return'] instead.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号