Re: pagination in struts2

2009-04-24 Thread Stefano Tranquillini
i take a fast look about your link i can done the presentation of the data by myself ? these libraries done only the pagination? On Thu, Apr 23, 2009 at 23:08, denis cabasson wrote: > Display tag is great for table pagination. > If you are looking for pagination without tables, I'd recommend the

Re: pagination in struts2

2009-04-23 Thread denis cabasson
Display tag is great for table pagination. If you are looking for pagination without tables, I'd recommend the pager tag library : http://jsptags.com/tags/navigation/pager/index.jsp Custom coding is my least favorite way of solving an issue. To extract a variable from an action to the page, I'd rec

Re: pagination in struts2

2009-04-23 Thread Stefano Tranquillini
i've done a pagination by myself. is an Alpha relase :D, not tested but u can set size and page to display: action: private List items = new ArrayList(); private int tot; private int page = 0; private int size = 1; private List pages = new ArrayList(); public AllItem() {

Re: pagination in struts2

2009-04-23 Thread Andy Sykes
I found I had to use the tag to set the object in the request scope before displaytag could "see" it, since displaytag doesn't know about the Value Stack (maybe it should?). Confusingly, displaytag gives you that message if it can't see the variable you're referencing, as well as if the va

Re: pagination in struts2

2009-04-23 Thread Stefano Tranquillini
i done this: this is the class taht create the list private List items = new ArrayList(); private Integer resultSize; public AllItem() { } @Override public String execute() throws Exception { items= mgmt.getAllItem(); resultSize=getItems().size();

Re: pagination in struts2

2009-04-23 Thread Stefano Tranquillini
emm i've a list in my session called items. so i'd write a ok, i'd understand, now works. anyway, how can i create the page number below? On Thu, Apr 23, 2009 at 17:40, Bhaarat Sharma wrote: > u have to first create TestList for the code to work > > On Thu, Apr 23, 2009 at 11:36 AM, Stefano w

Re: pagination in struts2

2009-04-23 Thread Bhaarat Sharma
u have to first create TestList for the code to work On Thu, Apr 23, 2009 at 11:36 AM, Stefano wrote: > when i put > <% request.setAttribute( "test", new TestList(2, false) ); %> > > netbeans said: cannot find construtcto TestList(int,bool) > > and the application goes in a exception: > > org.ap

Re: pagination in struts2

2009-04-23 Thread Jim Kiley
Lots of possibilities here:* you need to have a class named TestList in your application * you need a constructor for your TestList class that accepts an int and a boolean as its arguments * you need to be sure you are appropriate importing the reference to TestList in your JSP On Thu, Apr 23, 200

Re: pagination in struts2

2009-04-23 Thread Stefano
when i put <% request.setAttribute( "test", new TestList(2, false) ); %> netbeans said: cannot find construtcto TestList(int,bool) and the application goes in a exception: org.apache.jasper.JasperException: Unable to compile class for JSP: An error occurred at line: 1 in the jsp file: /jsp/shop

Re: pagination in struts2

2009-04-22 Thread André Diniz
It's just a sample pages... 2009/4/22 Dave Newton > http://displaytag.sourceforge.net/1.2/tut_externalSortAndPage.html > > It pays to really spend some time looking over existing documentation; it's > often quicker than waiting for someone on a list or forum to answer. > > Dave > > > Bhaarat Sha

Re: pagination in struts2

2009-04-22 Thread Dave Newton
http://displaytag.sourceforge.net/1.2/tut_externalSortAndPage.html It pays to really spend some time looking over existing documentation; it's often quicker than waiting for someone on a list or forum to answer. Dave Bhaarat Sharma wrote: jim, I found this example http://displaytag.homeip.

Re: pagination in struts2

2009-04-22 Thread Andy Sykes
Have a look at the external sorting and pagination page[1] on the DisplayTag site. Also, take a look at the PaginatedList interface[2]. It takes a little bit to get your head around it. If you get stuck, the displaytag lists are pretty good at helping with the common issues. Andy. [1] ht

Re: pagination in struts2

2009-04-22 Thread Bhaarat Sharma
jim, I found this example http://displaytag.homeip.net/displaytag-examples-1.2/example-paging.jsp?d-49653-p=1 it says "Ok, you have made a query that returns you back a list of 120 elements, but you don't want to show the user all 120 items at once, you want to allow them to page through the res

Re: pagination in struts2

2009-04-22 Thread Jim Kiley
I found this within thirty seconds of clicking Dave's link: http://displaytag.sourceforge.net/1.2/tut_sources.html Note that the contents of this page are actually fairly freakin' horrible and should not be done on a grownup application. But the instructions are right there and easy to find. jk

Re: pagination in struts2

2009-04-22 Thread Bhaarat Sharma
I wanted to use it for the purpose so that when I click NEXT or 2nd page then again I go to the DB to fetch next set of 50 records. but didnt see any examples of that sort On Wed, Apr 22, 2009 at 4:13 PM, Dave Newton wrote: > Stefano Tranquillini wrote: > >> someone has experience with this tag

Re: pagination in struts2

2009-04-22 Thread Dave Newton
Stefano Tranquillini wrote: someone has experience with this tag? i don't really understand how it works. What issues are you having? There are a number of tutorials and examples on the site: http://displaytag.sourceforge.net/1.2/tut_basic.html Dave -

Re: pagination in struts2

2009-04-22 Thread Stefano Tranquillini
t; wrote: > > > Are there any examples that show how to do pagination in struts2? > > > > I would like to do pagination where we call the DB again when the user > > clicks on one of the page numbers. > > > -- Stefano

Re: pagination in struts2

2009-04-21 Thread Chris Pratt
I'd suggest looking into DisplayTag (http://displaytag.sourceforge.net/) (*Chris*) On Tue, Apr 21, 2009 at 4:58 AM, Bhaarat Sharma wrote: > Are there any examples that show how to do pagination in struts2? > > I would like to do pagination where we call the DB again when the us

pagination in struts2

2009-04-21 Thread Bhaarat Sharma
Are there any examples that show how to do pagination in struts2? I would like to do pagination where we call the DB again when the user clicks on one of the page numbers.

Re: Pagination in Struts2

2008-04-30 Thread Jaarthy
I want the results in google format.Any help would be appreciated. Thanks, Aarthy balart wrote: > > Hi Aarthy, > > you can use the displaytag to implement the pagination in struts2. > > kindly tell that, Pagination as in Google? how, you want the page no in > googl

Re: Pagination in Struts2

2008-04-21 Thread balart
Hi Aarthy, you can use the displaytag to implement the pagination in struts2. kindly tell that, Pagination as in Google? how, you want the page no in google format or result in google format. Regards,' Bala Jaarthy wrote: > > Hi, > > How to implement pagination as in Goog

Re: Pagination in Struts2

2008-02-22 Thread Giovanni Azua
hi, As I said in the previous email. A straightforward way using displaytag would be defining a one-column table and define a decorator that will produce the free format you want to produce. If you configure displaytag to not show borders (look in displaytag css) and also configure the header

Re: Pagination in Struts2

2008-02-22 Thread Jaarthy
appreciated. >> >> Thanks, >> Aarthy >> > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED]

Re: Pagination in Struts2

2008-02-22 Thread Giovanni Azua
Using displaytag defining a 1-column table, no borders, and the right Decorator implementation you get your table-less Google. But OK then you would risk having a Decorator producing HTML, though this could be avoided by using some template-based framework e.g. velocity. regards, Giovanni Ad

Re: Pagination in Struts2

2008-02-22 Thread Adam Hardy
Just thought it's worth pointing out that displaytag does tables, whereas google search results are actually table-less. I'd be very interested if anyone knows whether displaytag or any other project is or will offer a table-less solution. There are so many extras that would be nice to have f

Re: Pagination in Struts2

2008-02-22 Thread Giovanni Azua
hi, I use displaytag (http://displaytag.sourceforge.net). If you can live without a natively AJAX-enabled pagination library, displaytag is excellent. I like very much the concept of display Decorators, produces a very clean design and perfect separation of concerns. Workarounds exist to AJA

Pagination in Struts2

2008-02-21 Thread Jaarthy
Hi, How to implement pagination as in Google in Struts2?Any Help would be appreciated. Thanks, Aarthy -- View this message in context: http://www.nabble.com/Pagination-in-Struts2-tp15619264p15619264.html Sent from the Struts - User mailing list archive at Nabble.com