wood burning stoves 2.0*
The moose likes Struts and the fly likes How to assign value to a Radio button in <display:column> tag Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "How to assign value to a Radio button in <display:column> tag" Watch "How to assign value to a Radio button in <display:column> tag" New topic
Author

How to assign value to a Radio button in <display:column> tag

Balaji Bang
Ranch Hand

Joined: Apr 23, 2007
Posts: 180
Hi

I am displaying the data coming from database using <display:table> .

It has 3 columns. Name, state,EDIT.

EDIT column contains the radio buttons used for editing those columns....

Here I am tring to assign value to the radio button . But it is showing undefined , when I am trying to print in the java script.

1) Click the radio button, that should contain value which is id coming from database.
2)after getting the id in java script, I have to submit the form.



Pleas ehelp me.....
how can I assign value to the radio button

Ankit Garg
Sheriff

Joined: Aug 03, 2008
Posts: 9291
    
  17

I've closed the duplicate thread that you created on this topic.

If you had seen the documentation of display tag, this is not hard to achieve. Look at this page. Basically the currently iterated element of the display tag is put into the page scope as an attribute with the name of the id attribute of display:table tag. So you don't need all the scripting that you are using, just simply use

There seems to be some inconsistency in your code, the name attribute of the display:table tag uses requestScope.screens and in your scripting you are using screen instead of screens...


SCJP 6 | SCWCD 5 | Javaranch SCJP FAQ | SCWCD Links
Balaji Bang
Ranch Hand

Joined: Apr 23, 2007
Posts: 180
HI Ankit...

Thanks a lot ....
Thank you very much...

Its working fine...
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to assign value to a Radio button in <display:column> tag
 
Similar Threads
how to get values from display table tag list?
display:column
error onclick of radio button inside display tag
struts2 + display tags + maps
maintin checkbox stauts during paginatin(dispalytag)