Results 1 to 1 of 1
- 05-27-2008, 02:11 PM #1
Member
- Join Date
- May 2008
- Posts
- 69
- Rep Power
- 0
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.
Similar Threads
-
Html tags within XML- need help
By iamhappy in forum XMLReplies: 2Last Post: 03-27-2008, 04:21 PM -
HTML tags for Struts
By Java Tip in forum Java TipReplies: 0Last Post: 12-27-2007, 09:58 AM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks