Solved

Take Values From Dynamically Added Rows Into Servlet

Posted on 2010-11-19
3
333 Views
Last Modified: 2012-05-10
Hi guys,
I am writing a project for the university and I'm new to java.
So my jsp page has some textBoxes and a table in which I add dynamically rows, using this method.
http://viralpatel.net/blogs/2009/03/dynamically-add-remove-rows-in-html-table-using-javascript.html
So, the other thing is, that I want to get the values from the table take it to a servlet and insert them into a database. My problem is:
I don't know what will be the names of the items in the cells of the tables, so I can process them in the servlet and extraxt their data using the request.GetParameter() method. If I use just a cycle it will process everything.
PS: My IDE is Eclipse EE.
If I have more questions I will ask you.
Thanks in advanse
0
Comment
Question by:IncognitoMan
  • 3
3 Comments
 
LVL 86

Accepted Solution

by:
CEHJ earned 500 total points
ID: 34171882
Set the name of the field in the JavaScript
0
 
LVL 86

Expert Comment

by:CEHJ
ID: 34171899
And you don't need to know the names of the fields in the servlet btw: just call request.getParameterNames
0
 
LVL 86

Expert Comment

by:CEHJ
ID: 34318106
:-)
0

Featured Post

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
JAVA part two 5 57
compre toata in where clue oracle 4 56
Basic Java Case or If-Else statement... 3 43
windows explorer path to command prompt 5 32
An old method to applying the Singleton pattern in your Java code is to check if a static instance, defined in the same class that needs to be instantiated once and only once, is null and then create a new instance; otherwise, the pre-existing insta…
This was posted to the Netbeans forum a Feb, 2010 and I also sent it to Verisign. Who didn't help much in my struggles to get my application signed. ------------------------- Start The idea here is to target your cell phones with the correct…
Viewers will learn about arithmetic and Boolean expressions in Java and the logical operators used to create Boolean expressions. We will cover the symbols used for arithmetic expressions and define each logical operator and how to use them in Boole…
This video teaches viewers about errors in exception handling.

910 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now