This week's book giveaway is in the Programmer Certification forum.
We're giving away four copies of OCP Oracle Certified Professional Java SE 11 Programmer I Study Guide: Exam 1Z0-815 and have Jeanne Boyarsky & Scott Selikoff on-line!
See this thread for details.
Win a copy of OCP Oracle Certified Professional Java SE 11 Programmer I Study Guide: Exam 1Z0-815 this week in the Programmer Certification forum!
  • 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Junilu Lacar
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Knute Snortum
  • Devaka Cooray
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Ron McLeod
  • Carey Brown
Bartenders:
  • Paweł Baczyński
  • Piet Souris
  • Vijitha Kumara

Displaytag with forms

 
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • 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?
 
When I was younger I felt like a man trapped inside a woman’s body. Then I was born. My twin is a tiny ad:
Java file APIs (DOC, XLS, PDF, and many more)
https://products.aspose.com/total/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!