• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

hw to get the values of text boxes in the cloned rows having same name and insert into the database

 
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator



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
 
Bartender
Posts: 11497
19
Android Google Web Toolkit Mac Eclipse IDE Ubuntu Java
  • Likes 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

first image is showing cloning of rows


You need to upload the image to some image hosting site which is publicly accessible and then provide the link. I usually use dropbox. You might have some other preference.
 
Gopalkrishna prasad
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Maneesh Godbole wrote:

first image is showing cloning of rows


You need to upload the image to some image hosting site which is publicly accessible and then provide the link. I usually use dropbox. You might have some other preference.



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
please find the above link..
 
Java Cowboy
Posts: 16084
88
Android Scala IntelliJ IDE Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Gopalkrishna, JavaScript is not the same thing as Java. I've moved your questions to our JavaScript forum.

If you have a question about JavaScript, then please post it there, instead of in one of the Java forums.
 
reply
    Bookmark Topic Watch Topic
  • New Topic