Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Please Help Me With This Error Message

 
JiaPei Jen
Ranch Hand
Posts: 1309
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 79
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
<bean:write name="editor" property="KeyValue"/>
Provide getter method (getKeyValue()) in the bean referenced by editor.
 
manasa teja
Ranch Hand
Posts: 325
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
JiaPei Jen
Ranch Hand
Posts: 1309
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You are right, Manasa. I messed up upper case K and lower case k.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic