http://www.quora.com/JavaScript/What-is-the-solution-to-get-the-values-of-text-boxes-in-the-cloned-rows-having-same-name-and-insert-into-the-database-using-jsp-and-servlet
for images please find the above link
here i'm doing clone of rows...
first image is showing cloning of rows
1)first address seq number wiil be 1, and user will enter effective date and effective status...
2)when user click [+] the next row will comes with auto increment of address seq num=2... and user will enter rest of the fields...
3)my problem is...how can i insert the subsequent "address seq number" , "effective date" and "effective status" to subsequent rows in the database table as i shown in the below....
consider this image as a table in database
--------------------------------------------------------
|address seq num|effective date|effective status|
--------------------------------------------------------
|1.......................|08/08/2013...|active.............|
--------------------------------------------------------
|2.......................|09/08/2013...|active.............|
-------------------------------------------------
|3.......................|10/08/2013...|active.............|
--------------------------------------------------------
----------------------------------
1)here i'm doing clone of a row...but this code is working only in eclipse [ ie ,cloning is working ] and it is also not working in anybrowsers.
if i write
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "Page on W3">
to this code ,it will not work in eclipse also.....
2)i have
servlet code to get only single value from
jsp
String address_seq_num=request.getParameter("address_seq_num");
String effdt =request.getParameter("effdt");
String eff_status =request.getParameter("eff_status");
how can i get the value of address seq number in the cloned row fromjsp to servlet to insert into the next row of a table in the database.
please guide me...
----------------------------------------------------------
the code is here