• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Displaytag with forms

 
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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?
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic