| 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: 14685
|
|
|
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
|
|
|