Solved

Take Values From Dynamically Added Rows Into Servlet

Posted on 2010-11-19
3
344 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

How our DevOps Teams Maximize Uptime

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us. Read the use case whitepaper.

Question has a verified solution.

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

In this post we will learn how to make Android Gesture Tutorial and give different functionality whenever a user Touch or Scroll android screen.
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
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 tutorial covers a step-by-step guide to install VisualVM launcher in eclipse.

733 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