java - Spring 3 - Petclinic - ${owner.new} invalid expression in Tomcat 7 -


i have deployed petclinic code spring 3 svn samples repository in tomcat7 , following exception:

internal error

root cause is: /web-inf/jsp/owners/form.jsp(4,1) "${owner.new}" contains invalid expression(s): javax.el.elexception: [new] not valid java identifier org.apache.jasper.jasperexception: /web-inf/jsp/owners/form.jsp(4,1) "${owner.new}" contains invalid expression(s): javax.el.elexception: [new] not valid java identifier

this expression resolves in springsource tc server developer edition 2.0.

any ideas why tomcat 7.0.2 has problem it?

bozho has ever reported bug: 50147 - static not valid identifier.

it boils down to:

the important part discussion on page 21 (of el specification).

identifier ::= java language identifier

java language identifier defined java language specification (jls).

identifiers specified in chapter 3.8 of jls indeed confirms identifiers may not keyword. per bug report, need access follows instead:

${owner['new']} 

or

${owner.isnew()} 

Comments

Popular posts from this blog

ASP.NET/SQL find the element ID and update database -

jquery - appear modal windows bottom -

c++ - Compiling static TagLib 1.6.3 libraries for Windows -