Home | » | Java | » | Advance Java | » | Java Servlet | » | Insert & Retrieve data from Table |
---|
The following are two Java Servlet programs Client Side and Server Side. One Program will insert a data into M.S.Access/SQL table and second will retrieve data from M.S.Access Table. For this first of all you need to create a M.S.Access database or SQL... but in this example I'm using M.S.Access. Create one table in M.S Access as shown below:
Table Definitions:
Column Definition:
Table Description:
|
After create table in M.S. Access database now you will create DSN.
Following is the client side source code of the MonthlyExpenditureClient.java