uncoolbob uncoolbob - 2 days ago 5
Java Question

What's the Java Bean property name for method getCustomerID()?

What's the correct Java Bean property name for method getCustomerID()?

I've tried customerID, customerId, CustomerId and customerid. None seem to work. Do I have to rename the Java method to get it to work?

UPDATE: I was getting stack traces from all four versions of the property name in my JSP code. I failed to read the one for customerID fully - the problem was elsewhere. Answer below accepted. Thank you.

Answer

The property name should be: customerID

Comments