javax.el.E​​LException:标识符[return]不是有效的Java标识符 [英] javax.el.ELException: The identifier [return] is not a valid Java identifier

查看:290
本文介绍了javax.el.E​​LException:标识符[return]不是有效的Java标识符的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个页面网址,看起来像:

I have a page url, which looks like:

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

安装tomcat后7,当试图访问它时我得到了这个例外:

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.

任何想法我为什么会这样做?要修复它,我应该只在tomcat中更改此属性吗?

Any ideas why I get that? To fix it should I change this property in tomcat only?

推荐答案

return 是Java编程语言(tm)中的保留关键字。但幸运的是,有一种替代拼写。请尝试 param ['return']

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

这篇关于javax.el.E​​LException:标识符[return]不是有效的Java标识符的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆