Im using struts2.1.6 with displaytag1.2
Ive been trying for quite a while now to create a table with pagination and persistant checkboxes wrapped in a form.
Code snippet from jsp:
Ok. The idea is simple: the user should be able to check some fields, paginate back and forth with the allready checked boxex staying checked. When he feels satisfied with his selections he clicks submit to save the choices.
The problem which arises is that the form tag action seems to override displaytags requestURI so when I try to paginate the PrintUsers.action is not reached, instead I end up in PostUsers.action which was not the intention.
I've tried using both <s:form> and plain <form>, with the same result. I've tried setting requestURI="", with the result that the pagination links gets unclickable. Ive tried, Ive tried so many things I cant even remember.
I cant think of a good way to do this with less than two controllers, but maybe there is a way. Does anyone have an idea of how this can be solved?