It's not a secret anymore!*
The moose likes JSP and the fly likes Error in JSP pge Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSP
Bookmark "Error in JSP pge" Watch "Error in JSP pge" New topic
Author

Error in JSP pge

Micahel Kang
Greenhorn

Joined: Jan 11, 2006
Posts: 6
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

Joined: Dec 11, 2004
Posts: 13410

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.


Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
Micahel Kang
Greenhorn

Joined: Jan 11, 2006
Posts: 6
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

Joined: Dec 11, 2004
Posts: 13410

Can you post the JSP code?
Also, the bean's accessor (getter) code, please.
 
Consider Paul's rocket mass heater.
 
subject: Error in JSP pge