• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

returning an int

 
Roberto Favaro
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This is a problem im having.Im trying to enter an id in HTML and return its details.I cant seem to compile my code correctly but I cant see how I can fiv it .Im lost

My bussiness class


my Product DAO class


My business class *This wont compile correctly*



Any help would be greatly appreciated.Even if someone could point me in the right direction.Tnx
 
Sonny Gill
Ranch Hand
Posts: 1211
IntelliJ IDE Mac
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What's the error message, and which line does the compiler point to?
 
Roberto Favaro
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sorry....Its pointing to the line in GetProductCommand.java


Heres the error

 
Fisher Daniel
Ranch Hand
Posts: 582
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I see that you have casting problem.
It is because you want to pass String object into method with integer argument.



You can change with this one



Correct me if I am wrong..
Hope this help

daniel
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 65118
91
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Moving to Java in General (intermediate)
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic