murali1983
12-19-2006, 01:27 PM
how to get the Dynamically(using javascript) generated values in Jsp to the form bean(struts)...
scenario...is shown below.
<div>
<table id='TABLE1'>
<thead>----------</thead>
<tbody>
</tbody>
</table>
</div>
i am using the table id in my java script and dynamically adding the rows with in the tbody......
as shown below...
------------------------------------------------------------------
var invoiceTable = document.getElementById('TABLE1');
row=invoiceTable.tBodies[0].appendChild(document.createElement('<tr>'));
cell=document.createElement('td');
row.appendChild(cell);
---------------------------------------------------------------
with in each <td> i am adding a text box..
onClick on submit button i should be able to capture the values that are entered in the textbox by the user.., i got to get the values in the form bean.
plz...help me...i am in terrible need of it..
thnx
murali.
scenario...is shown below.
<div>
<table id='TABLE1'>
<thead>----------</thead>
<tbody>
</tbody>
</table>
</div>
i am using the table id in my java script and dynamically adding the rows with in the tbody......
as shown below...
------------------------------------------------------------------
var invoiceTable = document.getElementById('TABLE1');
row=invoiceTable.tBodies[0].appendChild(document.createElement('<tr>'));
cell=document.createElement('td');
row.appendChild(cell);
---------------------------------------------------------------
with in each <td> i am adding a text box..
onClick on submit button i should be able to capture the values that are entered in the textbox by the user.., i got to get the values in the form bean.
plz...help me...i am in terrible need of it..
thnx
murali.