aspose 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
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)
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: form:options tag cause error : Bean property is not readable or has an invalid getter method