"listOfDtos" is an array list od dto and is set in the action like the below
Now when the user selects any row to be deleted I want to be able to first of all retrieve this list of dtos in the
Action and iterate them to check which of the dtos have the attribute "select" set to true.
"select" is an attribute of type String in the dto.
How can this be done ? also how will the "listOfDtos" be made available in the Action.
Once the action execution is done ActionContext data is no more available that is how struts2 framework is designed, for each and every request a new action instance will be created and it's holding it's own actionConext data that's why clean will happen after action execution, if you want that data store the data in session.
ocjp 6 — Feeding a person with food is a great thing in this world. Feeding the same person by transferring the knowledge is far more better thing. The reason is the amount of satisfaction which we get through food is of only one minute or two. But the satisfaction which we can get through the knowledge is of life long.