aspose file tools*
The moose likes JSP and the fly likes JSP error Bean does not have Property Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "JSP error Bean does not have Property" Watch "JSP error Bean does not have Property" New topic
Author

JSP error Bean does not have Property

Brooke Maddox
Ranch Hand

Joined: Nov 23, 2012
Posts: 42
I have a JSP page that I am using to display some items from a database along with a description of each item and the price of each item. I would like the user to be able to add each item to a cart, I am using a form which should use the items ID as a value. My problem is that when I run the code I get an error saying my bean does not have an ID property (although it does). I am able to display all of the other properties from my bean. Does anyone know what is wrong?

I have included the snippet of code from my JSP page, and my DAO

JSP

DAO
Christophe Verré
Sheriff

Joined: Nov 24, 2005
Posts: 14688
    
  16

I see a productID in your bean, not an ID.


[My Blog]
All roads lead to JavaRanch
Brooke Maddox
Ranch Hand

Joined: Nov 23, 2012
Posts: 42
Thank you for the reply that fixed it :)
 
 
subject: JSP error Bean does not have Property