File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Struts and the fly likes Which feature of Struts suits this problem better ? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Which feature of Struts suits this problem better ?" Watch "Which feature of Struts suits this problem better ?" New topic
Author

Which feature of Struts suits this problem better ?

Steve Adam
Ranch Hand

Joined: Jan 07, 2009
Posts: 40
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 ?


Its not what you do, its how well you do it.
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

Are you talking about pagination or Ajax? What version of Struts?
Steve Adam
Ranch Hand

Joined: Jan 07, 2009
Posts: 40
Pagination, Struts 1.3

Regards !!
Sagar Rohankar
Ranch Hand

Joined: Feb 19, 2008
Posts: 2902
    
    1

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 !!


[LEARNING bLOG] | [Freelance Web Designer] | [and "Rohan" is part of my surname]
Nishan Patel
Ranch Hand

Joined: Sep 07, 2008
Posts: 684

Hi,

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


Display Tag



Thanks, Nishan Patel
SCJP 1.5, SCWCD 1.5, OCPJWSD Java Developer,My Blog
Sagar Rohankar
Ranch Hand

Joined: Feb 19, 2008
Posts: 2902
    
    1

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
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Which feature of Struts suits this problem better ?
 
Similar Threads
what is page Nation
ResultSet Paging Help
Ajax app
Help reqd. in displaying results
navigation problem