I am working on struts2 application in which i am using displaytag for pagination support.
Now i want a check box for each row in t
This is how I would do it.
instead of 'id' for all id columns, append a sequence number so that each id has a unique name, such as 'id1', 'id2' etc
create a interceptor that collects values of parameters prefixed with 'id'
configure your action to use the interceptor
My strut fu is rusty though. There probably is a better way.
If you add a String[] to your action named the same as your checkbox(s) and expose it via accessors (getters/setters) struts 2 should auto populate it.