• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Bean problem

 
Oswald King
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a Bean class with a property (say "myPack.account")


I have a JSP page with a TextField (say form.jsp with action="process.jsp")


then in process.jsp page, i have


Tomcat giving an exception ::
Cannot find any information on property 'sACC_NO' in a bean of type myPack.account

is it because of the naming convention i have used?
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes, getProperty will look for either getXxx or isXXX methods.


By the way: your hunch was good.
Wouldn't it have been quicker to try coding to convention to see if that fixed the problem than to write to a forum and wait for an answer?
[ February 24, 2006: Message edited by: Ben Souther ]
 
Oswald King
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Wouldn't it have been quicker to try coding to convention to see if that fixed the problem than to write to a forum and wait for an answer?


Of course.
well, i write the code that way just to see if it gives any problem
Yes, getProperty will look for either getXxx or isXXX methods

thanks for it.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic