Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Which feature of Struts suits this problem better ?

 
Steve Adam
Ranch Hand
Posts: 40
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi
I want to implement a page which will display a record from database.
And that page should have "next" & "previous" buttons.
Upon clicking those buttons, next/previous record should display on same jsp.

How to implement this using Struts ?
 
David Newton
Author
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Are you talking about pagination or Ajax? What version of Struts?
 
Steve Adam
Ranch Hand
Posts: 40
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Pagination, Struts 1.3

Regards !!
 
Sagar Rohankar
Ranch Hand
Posts: 2907
1
Java Spring Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Kun All wrote:Pagination, Struts 1.3

Pagination is JSP thing, and Struts, Look here for one entry in JSP FAQ's.

And I think your name is Kunal !!
 
Nishan Patel
Ranch Hand
Posts: 689
Eclipse IDE Java Scala
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

If you simply display pagination in your application, why don't you try Display tag..


Display Tag

 
Sagar Rohankar
Ranch Hand
Posts: 2907
1
Java Spring Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Nishan Patel wrote:If you simply display pagination in your application, why don't you try Display tag..
Display Tag

My personal advise will be, don't go for display tag, unless and until you really need some high end user experience, like sorting searching, records-per-page settings, etc, etc., but if its simple pagination with fixed record size, go for the JSP FAQ link.

I saw many people messed up with display tag
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic