JSPG0122E: Unable to parse EL function in Websphere 8

烈酒焚心 提交于 2019-12-01 21:32:49

The code responsible for checking for the use of reserved keywords as EL variable identifiers was enhanced in WebSphere Application Server v8.0 and beyond, making the checking more strict. The variable checking code not only checks for reserved EL keywords, but also Java reserved keywords.

See this article for more info: http://www-01.ibm.com/support/docview.wss?uid=swg21642419&myns=swgws&mynp=OCSSEQTP&mync=A

It seems this error was due to Websphere 8 not being able to parse EL expressions containing a package property or variable. For example, changing the above to

<c:if test="${not empty rowVo.operation.getPackage()}">

made it work.

I also made a little test of my theory with this little snippet:

<c:set var="salary" scope="session" value="${2000*2}"/>
<c:out value="Salary: ${salary}"/>

runs fine and produces the expected output Salary: 4000. However,

<c:set var="package" scope="session" value="${2000*2}"/>
<c:out value="Salary: ${package}"/>

produces the same error as above.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!