Solved

Take Values From Dynamically Added Rows Into Servlet

Posted on 2010-11-19
3
331 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
Comment Utility
Set the name of the field in the JavaScript
0
 
LVL 86

Expert Comment

by:CEHJ
Comment Utility
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
Comment Utility
:-)
0

Featured Post

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

Suggested Solutions

Are you developing a Java application and want to create Excel Spreadsheets? You have come to the right place, this article will describe how you can create Excel Spreadsheets from a Java Application. For the purposes of this article, I will be u…
Java Flight Recorder and Java Mission Control together create a complete tool chain to continuously collect low level and detailed runtime information enabling after-the-fact incident analysis. Java Flight Recorder is a profiling and event collectio…
Viewers learn about the “for” loop and how it works in Java. By comparing it to the while loop learned before, viewers can make the transition easily. You will learn about the formatting of the for loop as we write a program that prints even numbers…
This theoretical tutorial explains exceptions, reasons for exceptions, different categories of exception and exception hierarchy.

743 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

16 Experts available now in Live!

Get 1:1 Help Now