aspose file tools*
The moose likes Struts and the fly likes Struts2 Iterator Radio Tag Display Issue. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Struts2 Iterator Radio Tag Display Issue." Watch "Struts2 Iterator Radio Tag Display Issue." New topic
Author

Struts2 Iterator Radio Tag Display Issue.

sam jsem
Greenhorn

Joined: Mar 12, 2011
Posts: 9
All,

I am having the following problem in Struts2: I have an ModelDriven Action. In that Action, ActionA I am preparing an object, ObjectA, for display. However, this is a complex object: ObjectA has as a properties List<ObjectB>. When the ActionA's execute method has completed, I display certain String properties of ObjectA in a JSP. I then iterate over ObjectA's List<ObjectB> also in the same JSP. What follows is the code for the iteration I conduc



The issue is that the radio button is not rendering or passing the value I want properly. I want the 'id' property in ObjectB in the iterator to contain the ObjectB's 'emailAddress' value. This value should then be subseqently passed to other actions. Could someone please help to explain why it is not rendering correctly, and what the right answer is to get it to render correctly? Any help would be greatly appreciated.

The definition of ObjectA and ObjectB is as follows:


 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Struts2 Iterator Radio Tag Display Issue.
 
Similar Threads
JPA 2.0:Columns inserted as nulls while the table have multiple foreign keys
problem with struts2 checkbox
struts2 iterator tag
Struts2 Checkbox: How to set value back to Bean
Struts2 variable inside javascript