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

Error in JSP pge

 
Micahel Kang
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I get the following error when I click a button in my jsp page.

javax.servlet.jsp.jspException:Exception accessing property CustomerDetails for bean line:javax.lang.NoSuchMethodException:Unknown property:CustomerDetails

The wierd part is this exception occurs for only one particular data value!
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Do you have a property called CustomerDetails?

If your bean's accessor method is "getCustomerDetails" you would access it with ${beanName.customerDetails}
or <jsp:getProperty name="beanName" property="customerDetails" />.
Note the lower case 'c' at the beginning.

Check your syntax.
 
Micahel Kang
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I understand.I typed it wrongly in my query. It is customerDetails.
Also if it was a syntax mistake,then it shouldn't be working for any of the cases.
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can you post the JSP code?
Also, the bean's accessor (getter) code, please.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic