|
Is it possible to use struts-html tags in javascript...?
Hi Members,
Great to meet you here; Be patient and go through my post.
Question:
Im retrieving an 'xml' content by Ajax call, and using javascript I tried to paint my table content with values retrieved.
javascript:
Within javascript we would have drawn a table with radio buttons and checkbox.... but i need to draw a checkbox using 'struts-html' tag, so that the values can be set in formBean and can be retrieved easily....
Please can anyone help me out in this.........
Im drawing a table with checkbox in one column and other two columns with it;
using ajax call, in XML format and retrieve the values using 'getElementByTagname' and place the variable within the <td> and with in a loop:
for Example:
for(int i=0; i<=XML.length; i++)
{
<table>
<td>
checkbox tag.....(This should be struts-html tag......?????)
</td>
<td>
first column value....
</td>
...
......
......
</table>
}
this will be looped for total number of rows retrieved......
and a table with 3 columns will be painted....
This html tags are appended to a division in javascript and replaced with the innerHtml of the division.
But on selecting the 'checkbox', i need to retreive the whole row value and pass it to action... and session should be maintained to perform my business logic..........
can anyone help me in this..........
i could not retrieve the value now.....
Thanks and Regards,
Prabhu.
|