struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Omar Ngarigari <>
Subject s:checkbox inside s:iterator in struts2.3.1.2
Date Mon, 24 Sep 2012 00:03:51 GMT

Please help, I am having problem that I cannot figure out how to solve it. The problem is
as follow:

1. JSP page:
<s:iterator value="myList" var="record">
<s:property value="#record.ageNumber"/>
<s:property value=""/>
<s:checkbox name="stringList" fieldValue="%{age}"/>

2. Action Class
public class ExampleAction extends ActionSupport {
private List<Pojo> myList = new ArrayList<Pojo>();
private List<String> stringList = new ArrayList<String>();
private int age;

public String execute(){
return Action.SUCCESS;

My problem is I don't know how to get the age in checkbox at JSP page back in the action class
to generate PDF file. The PDF file is generated based on the age from the JSP. Is there any
one can help me to achieve that.


Omar N.
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message