Menu

#3 Adherence to bean spec?

open
nobody
None
5
2008-03-28
2008-03-28
Jeff Lowe
No

Hit what appears to be a showstopper.

For reasons that predate me, all the properties on my command object are like EName and ESubject. Therefore the getters/setters are getEName(), setEName(), etc.

Spring-json converts them into "eName", "eSubject" in the output JSON. Therefore in order to bind to the client form, I need to use "eName" and "eSubject" as the form field names.

So far so good.

However when I submit the form, Spring does not bind to the command object because it's expecting "EName" and "ESubject", not "eName" and "eSubject". I assume that Spring is consistent with the bean spec. Also when using the JSP EL, it only recognises the upper case names.

Discussion


Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.