|
|
| Inserting data on a database in servlet |
Expert:saeed
Hi I am following the tutorial in this site on servlet and JDBC. I did all the proccedure for connecting to a databse by a servlet.I used the example in "Inserting Data In Database table using Statement",but typing the following url(http://localhost:8080/DataInsertion/DataInsertion) in the browser, I just saw my designed database in the form of a table,that is none of the data which i tried to enter into database by using INSERT statement were entered into it.i mean there were no updated database. By the way ,I have tested HelloWorld sample code and it was ok,but the tutorials which use database does not work. I have checked the database and it is running while i am running the code .My databse is Mysql 5.0 . I would be delighted by any insight you may lend . |
| Answers |
Hi friend,
Please check the database config. you have used :
Database name : Database Table Name : Database Username : Database Password :
Check the connection created or not.
For any more problem give the full source code to solve it.
Thanks
|
Hi,
I am sending you a link. This link will help you.
Please Visit for more information.
http://www.roseindia.net/servlets/
Thanks.
|
| More Questions |
|
|
Post Answers
Ask Question
Facing Programming Problem?
|
|
|
|
|