Win a copy of Java Mock Exams (software) this week in the Programmer Certification (OCPJP) forum!
    Bookmark Topic Watch Topic
  • New Topic

error saving data in my database

 
Haythem Ben Yahia
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Report post to moderator
hi,
I set up a JSP page that retrieves values ​​from the URL and save them in a database.
so I break my code and I created a class to connect to the database and executes the JSP request, however, it doesn't work.
Here is the code of the class knowing that I tested and it works


here is my jsp page that calls the method getMyConnection() in my class Connect.java


and this is the error



it seems like my jsp can't locate my classes.
i'm sure that i imported them into my jsp file.
the saving process is working under eclipse but if i i try to aceess to the same URL successfully launched on eclipse it generates me the error that " CLASSNAME CANNOT BE LOCATED "


Please help !!!
 
Jeanne Boyarsky
author & internet detective
Sheriff
Posts: 35975
422
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Report post to moderator
Let's continue the conversation in your original thread.
 
Happiness is not a goal ... it's a by-product of a life well lived - Eleanor Roosevelt. Tiny ad:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
    Bookmark Topic Watch Topic
  • New Topic
Boost this thread!