Win a copy of GANs in ActionE this week in the AI forum
or WebAssembly in Action in the JavaScript 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
  • Bear Bibeault
  • Paul Clapham
  • Jeanne Boyarsky
  • Knute Snortum
Sheriffs:
  • Liutauras Vilda
  • Tim Cooke
  • Junilu Lacar
Saloon Keepers:
  • Ron McLeod
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Joe Ess
  • salvin francis
  • fred rosenberger

displayTag sorting problem

 
Ranch Hand
Posts: 58
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Here is my jsp page:


The URL looks like this when I navigate to my list page:

http://localhost:8080/SCANSSubscribeR2/SubscriptionController?action=subscriptionlist

and I get a list of subscriptions.

But whenI click on a column heading to sort, the URL looks like this:

http://localhost:8080/SCANSSubscribeR2/subscription_list.jsp?d-49653-s=0&action=subscriptionlist&d-49653-o=2

and I get 'Nothing found to display.' message.

I have compared my URL with the URL generated when I click on the sort heading in the samples for displayTag. It looks like this:

http://localhost:8080/displaytag-examples-1.2/example-sorting.jsp?d-49653-s=1&d-49653-o=2

Can someone suggest why this is happening?


 
stephen r davidson
Ranch Hand
Posts: 58
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am beginning to see the issue. The sort invokes the .jsp directly whereas the normal navigation path takes me through the controller, where the session variable 'subscriptions' is set.
The sort, by invoking the jsp directly, has no session variable, thus no data.

hmm. still puzzling over the solution though.
 
Goodbye moon men. Hello 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!