aspose file tools*
The moose likes Struts and the fly likes Displaytag with forms Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Displaytag with forms" Watch "Displaytag with forms" New topic
Author

Displaytag with forms

Joel Sand
Greenhorn

Joined: Feb 25, 2009
Posts: 8
Hi,

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?
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Displaytag with forms