I am fetching few column values from the table and add one column on my jsp page in which I am entering value manually and save all the data in another table while clicking on "Save" Button.
But I am not getting the proper output.Please help me out.
I am getting success to get data of Employee Code,Employee name and Dept code from emp_mst.
now I am adding LWP(Leave without Pay) field for all the fetched value.After adding LWP how to save all the data in another table "i.e. leave_mst " while clicking on Submit button..
Following had written my code how it work...Please give me the solution for this..
String empmst="select empcd,emp_name,dept_cd from emp_mst";
DBConnection db = new DBConnection();
rs = db2.getAllData(empmst);
Mehta Soham wrote:But I am not getting the proper output.
What are you getting as output and what are you expecting? I'm not following from your description.
Note that it is poor practice to put Java code, especially JDBC, in a JSP. It is much better to use a Java class for this. In particular, it's easier to read, debug, maintain and troubleshoot when not in a JSP.