Java Forums

Main Menu
Home
Today's Posts
FAQ
Search
Contact Us

Java Network
Java Tips
Java Tips Blog

Sponsored Links





Welcome to the Java Forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community, you will:

  • have access to post topics
  • communicate privately with other members (PM)
  • not see advertisements between posts
  • have the possibility to earn one of our surprises if you are an active member
  • access many other special features that will be introduced later.

Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 05-27-2008, 03:11 PM
Member
 
Join Date: May 2008
Posts: 49
prabhurangan is on a distinguished road
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.
Bookmark Post in Technorati
Reply With Quote
Sponsored Links
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Html tags within XML- need help iamhappy XML 2 03-27-2008 05:21 PM
Struts HTML Tags (I) JavaForums Java Blogs 0 01-17-2008 03:21 PM
Using tags in Struts(II) JavaForums Java Blogs 0 01-09-2008 02:51 PM
Using tags in Struts(I) JavaForums Java Blogs 0 01-08-2008 02:20 PM
HTML tags for Struts Java Tip Java Tips 0 12-27-2007 10:58 AM


All times are GMT +3. The time now is 06:51 PM.


VBulletin, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright ©2006 - 2007, www.java-forums.org