Solved

Take Values From Dynamically Added Rows Into Servlet

Posted on 2010-11-19
3
349 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Quiz: What Do These Organizations Have In Common?

Hint: Their teams ended up taking quizzes, too.

Question has a verified solution.

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

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…
Introduction Java can be integrated with native programs using an interface called JNI(Java Native Interface). Native programs are programs which can directly run on the processor. JNI is simply a naming and calling convention so that the JVM (Java…
Video by: Michael
Viewers learn about how to reduce the potential repetitiveness of coding in main by developing methods to perform specific tasks for their program. Additionally, objects are introduced for the purpose of learning how to call methods in Java. Define …
This video teaches viewers about errors in exception handling.

691 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