Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JSP error Bean does not have Property

 
Brooke Maddox
Ranch Hand
Posts: 42
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I see a productID in your bean, not an ID.
 
Brooke Maddox
Ranch Hand
Posts: 42
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you for the reply that fixed it :)
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic