Win a copy of Testing JavaScript Applications this week in the HTML Pages with CSS and JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Carey Brown

What should be the return for this case - DAO, DAOImpl, Manager, Controller ?

 
Ranch Hand
Posts: 608
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dear expert,

I have re-write my insert method and changed it to prepared statement to avoid sql injection attack.

Now, I am facing problem in the manager class where the Eclipse EE just asked me to put the return type as return but then it doesn't work out.. as the data still can't be inserted into the database

Hope someone can correct my code. Tks.

Here's the code :











 
Sheriff
Posts: 4870
317
IntelliJ IDE Python Java Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can you be more specific about the nature of the failure? Do you get a compilation error? Runtime error? Unexpected program function? Other?
 
Don't get me started about those stupid light bulbs.
    Bookmark Topic Watch Topic
  • New Topic