File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Struts and the fly likes  No getter method for property error Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark " No getter method for property error" Watch " No getter method for property error" New topic
Author

No getter method for property error

Alvin chew
Ranch Hand

Joined: Jan 08, 2004
Posts: 834
hi, i experience this error , how i solve this ?

]org.apache.jasper.JasperException: No getter method for property c_company of bean org.apache.struts.taglib.html.BEAN


Shankar Narayana
Ranch Hand

Joined: Jan 08, 2003
Posts: 134
Hi,

Try renaming your methods like


"Failure is not when you fall down; its only when you fail to get up again."
Roel De Nijs
Bartender

Joined: Jul 19, 2004
Posts: 5131
    
  12

or change in your jsp-page where you have c_company (e.g. in <bean:write name="beanName" property="c_company"/>
into

<bean:write name="beanName" property="company"/>


SCJA, SCJP (1.4 | 5.0 | 6.0), SCJD
http://www.javaroe.be/
Alvin chew
Ranch Hand

Joined: Jan 08, 2004
Posts: 834
thanks , shankar and roel...it work ...
[ August 03, 2004: Message edited by: Alvin chew ]
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: No getter method for property error
 
Similar Threads
getXXX error?? for XXXX
javabean getter and setter
Struts nested:notEmpty tab
Please Help Me With This Error Message
Retrieve values from Object[][] using iterator