Link to home
Start Free TrialLog in
Avatar of TheVeee
TheVeeeFlag for United States of America

asked on

Collect data and add to table

Trying to find a way to collect data on a screen and when user clicks a add button, drop it into a table below it.  Then user could repeat the process over and over until finished.   Once user is finished, will click a submit button and then will send to a java servlet which will process all the new requests.

I know I could do a submit button then send to servlet and the wrap around back, but trying to cut down on the network traffic and also make the application more user friendly.  Using java and jsp's.

Example:

Name:
Address:
State:

ADD BUTTON

Then on same form,  a table below it which will show each time the user adds another user.  

Name                       Address                       State
John Smith               114 N. Ash                   MO
Fred Flintstone         2912 S. Willow            KS

SUBMIT BUTTON
ASKER CERTIFIED SOLUTION
Avatar of zkeown
zkeown
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of TheVeee

ASKER

Sorry, not following you.  I want this in a html table until I done getting all the additions for the user.  From reading this would be putting into a actual data store table like oracle if Im reading correctly???

so they enter values in basic text fields, click add button and then then those fields create another <TR><TD> ........ structure in the table with the data just entered.  Once their all done, they click submit button and then I have my servlet process table entries and then do the physical add to the database....

<table>
<tr>
  <td>Frank Smith</td>
  <td>2110 S. Willow</td>
  <td>MO</td>
</tr>
</table>
No no that's javascript... creates the table right there on the client.
Avatar of TheVeee

ASKER

Thanks!