aspose file tools*
The moose likes Struts and the fly likes Pager-tag can't paing if I don't place code in jsp?! Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Pager-tag can Watch "Pager-tag can New topic
Author

Pager-tag can't paing if I don't place code in jsp?!

Yashnoo lyo
Ranch Hand

Joined: Feb 17, 2003
Posts: 152
Hi everyone:
Does anyone used pager-taglib for paging? I can paing use the taglib if mycode is:

This code can works well and it can paging.k
But I don't want to place so many java code in my jsp,it isn't well MVC pattern.So I want to using struts-taglib in my jsp.And I change the code to:

In my servlet I use "session.setAttribute("mailList",DB.getList());" to place a List to page,but now,it can't paing !
Why? it's a bug? Or struts can't be used with other taglib?Some one know how to resolve it?
Thks in advanced!


When I face C# and Java I choose Java.
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61661
    
  67

Moving to the Struts forum where those familiar with Struts tag interactions hang out.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Yashnoo lyo
Ranch Hand

Joined: Feb 17, 2003
Posts: 152
Any idea? How to paging if I get a List in my jsp?
Svetlana Koshkina
Ranch Hand

Joined: Jul 08, 2003
Posts: 108
Originally posted by Yashnoo lyo:
Any idea? How to paging if I get a List in my jsp?

I tried the pager once and it did not paint at all. There were no time for me to sort it out and i did very simple pager from some book.
So, i am simply stating that not only you had that problem.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Pager-tag can't paing if I don't place code in jsp?!