File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Struts and the fly likes Struts 2 - Radio and CheckBox Inside Iterator Tag Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Struts 2 - Radio and CheckBox Inside Iterator Tag" Watch "Struts 2 - Radio and CheckBox Inside Iterator Tag" New topic
Author

Struts 2 - Radio and CheckBox Inside Iterator Tag

Santhosh Kalisamy
Ranch Hand

Joined: Apr 15, 2008
Posts: 56
Hello,

Good day!

We are developing a new application with Struts2.

JavaBean Class


Action Class


Now, I need to display All products on 2 pages. Once page, user has to select maximum of one product (radio button) and other pages user can select any no of products (checkbox).

I have to display all the information about the product with option button/checkbox to select.



I have to display the products on each row with option button, so user can select one product each time.

Please help me! I have tried so many options... nothing working out for me.
Yogesh Lonkar
Ranch Hand

Joined: Jul 17, 2012
Posts: 94

for first page you can do is that after Iterator provide select tag

and on second page use


Learning some thing New Every Day
Santhosh Kalisamy
Ranch Hand

Joined: Apr 15, 2008
Posts: 56
Thanks Yogesh!
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Struts 2 - Radio and CheckBox Inside Iterator Tag