File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Spring and the fly likes form:options tag cause error : Bean property is not readable or has an invalid getter method Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Frameworks » Spring
Bookmark "form:options tag cause error : Bean property is not readable or has an invalid getter method" Watch "form:options tag cause error : Bean property is not readable or has an invalid getter method" New topic
Author

form:options tag cause error : Bean property is not readable or has an invalid getter method

albert kao
Ranch Hand

Joined: Feb 04, 2010
Posts: 245
I want to use the formptions provided by Spring to provide choices.
My JSP implemented with Spring 2.5 is



My AccountCommand.java is




My Eclipse console is:
15:55:23,140 ERROR org.springframework.web.servlet.tags.form.OptionsTag:84 - Invalid property 'billingType' of bean class [java.lang.String]: Bean property 'billingType' is not readable or has an invalid getter method: Does the return type of the getter match the parameter type of the setter?
org.springframework.beans.NotReadablePropertyException: Invalid property 'billingType' of bean class [java.lang.String]: Bean property 'billingType' is not readable or has an invalid getter method: Does the return type of the getter match the parameter type of the setter?
at org.springframework.beans.BeanWrapperImpl.getPropertyValue(BeanWrapperImpl.java:540)
at org.springframework.beans.BeanWrapperImpl.getPropertyValue(BeanWrapperImpl.java:532)
at org.springframework.web.servlet.tags.form.OptionWriter.renderFromMap(OptionWriter.java:164)
 
Don't get me started about those stupid light bulbs.
 
subject: form:options tag cause error : Bean property is not readable or has an invalid getter method
 
Similar Threads
org.springframework.beans.NotReadablePropertyException
form:options tag should display string instead of int
Error Reading data from database
form:options runtime error
SimpleFormController ReferenceData not working