Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Take Values From Dynamically Added Rows Into Servlet

Posted on 2010-11-19
3
Medium Priority
?
356 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 2000 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

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

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

Java had always been an easily readable and understandable language.  Some relatively recent changes in the language seem to be changing this pretty fast, and anyone that had not seen any Java code for the last 5 years will possibly have issues unde…
Basic understanding on "OO- Object Orientation" is needed for designing a logical solution to solve a problem. Basic OOAD is a prerequisite for a coder to ensure that they follow the basic design of OO. This would help developers to understand the b…
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 …
Viewers will learn about the regular for loop in Java and how to use it. Definition: Break the for loop down into 3 parts: Syntax when using for loops: Example using a for loop:
Suggested Courses

636 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