wood burning stoves 2.0*
The moose likes Struts and the fly likes Please Help Me With This Error Message 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 » Struts
Bookmark "Please Help Me With This Error Message" Watch "Please Help Me With This Error Message" New topic
Author

Please Help Me With This Error Message

JiaPei Jen
Ranch Hand

Joined: Nov 19, 2000
Posts: 1309
I have

in my JSP. I cannot figure out this error message I got:
javax.servlet.ServletException: No getter method for property KeyValue of bean editor
Anand Ko
Ranch Hand

Joined: Dec 03, 2003
Posts: 79
<bean:write name="editor" property="KeyValue"/>
Provide getter method (getKeyValue()) in the bean referenced by editor.


Anand<br />SCJP 1.4, SCWCD 1.4, SCEA 5.0(1/3)
manasa teja
Ranch Hand

Joined: May 27, 2002
Posts: 325
Originally posted by JiaPei Jen:
I have

in my JSP. I cannot figure out this error message I got:
javax.servlet.ServletException: No getter method for property KeyValue of bean editor

I beleive it should be like this..
<bean:write name="editor" property=keyValue/>
you are using Capital "K" in the proprety...
if your editor bean is having variables with starting letter in capitals, change them to small letters and create fresh setters and getters..
HTH


MT
JiaPei Jen
Ranch Hand

Joined: Nov 19, 2000
Posts: 1309
You are right, Manasa. I messed up upper case K and lower case k.
 
 
subject: Please Help Me With This Error Message
 
Similar Threads
sorry... my previous mail got posted halfway...completing now
How To Submit A Property/Value PairThat Is Not Selected/Filled-Out By Visitors
Hidden Field
Pass A String and Write Out Its Value in JSP
inner class - ClassNotFoundException