Re: Struts2 Jquery Grid pagination is not working

2013-03-03 Thread Arun Bansal
Thanks for your valuable comments about my question.
But i want to tell that my grid is perfectly populated with desired records but 
only pagination in not working, means if it should show 100  records it is 
showing butpager's next forward  button become disabled as soon as the grid 
populates.

any Response is welcome.
Thanks  Regards
Arun  Bansal





 From: Martin Gainty mgai...@hotmail.com
To: Struts Users Mailing List user@struts.apache.org 
Sent: Saturday, 2 March 2013 5:10 PM
Subject: RE: Struts2 Jquery Grid pagination is not working
 
TO gain an thorough understanding of how Struts Grid Control works please 
follow this tutorial
http://code.google.com/p/struts2-jquery/wiki/GridTag


For understanding in-depth architetcure and how to associate DOM attach-points 
to your TagClasses read
the Struts JQuery Grid Showcase tutorial by Johannes Geppert
http://struts.jgeppert.com/struts2-jquery-grid-showcase/index.action

Viel Gluck!
Martin 
__
Verzicht und Vertraulichkeitanmerkung

Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger 
sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung 
oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem 
Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. 
Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung 
fuer den Inhalt uebernehmen.


 From: mgai...@hotmail.com
 To: user@struts.apache.org
 Subject: RE: Struts2 Jquery Grid pagination is not working
 Date: Sat, 2 Mar 2013 06:25:13 -0500

 There are so many items that can cause this problem
 Did you create Action class which will handle interactions from mouse and 
 keyboard-input
 Did you declare the Taglibs to be included
 did you create the Pojos and assigned the individual Tag Attributes to 
 populate from and update the Pojo attributes

 Did you check
 Martin Gainty
 __
 Jogi és Bizalmassági kinyilatkoztatás/Verzicht und 
 Vertraulichkeitanmerkung/Note de déni et de confidentialité
 Ez az
 üzenet bizalmas. Ha nem ön az akinek szánva volt, akkor kérjük, hogy
 jelentse azt nekünk vissza. Semmiféle továbbítása vagy másolatának
 készítése nem megengedett. Ez az üzenet csak ismeret cserét szolgál és
 semmiféle jogi alkalmazhatósága sincs. Mivel az electronikus üzenetek
 könnyen megváltoztathatóak, ezért minket semmi felelöség nem terhelhet
 ezen üzenet tartalma miatt.
 Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger 
 sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung 
 oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich 
 dem Austausch von Informationen und entfaltet keine rechtliche 
 Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von E-Mails koennen 
 wir keine Haftung fuer den Inhalt uebernehmen.
 Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le 
 destinataire prévu, nous te demandons avec bonté que pour satisfaire informez 
 l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci 
 est interdite. Ce message sert à l'information seulement et n'aura pas 
 n'importe quel effet légalement obligatoire. Étant donné que les email 
 peuvent facilement être sujets à la manipulation, nous ne pouvons accepter 
 aucune responsabilité pour le contenu fourni.
 
  From: kaunain.ahmad2...@gmail.com
  Date: Sat, 2 Mar 2013 14:50:41 +0530
  Subject: Re: Struts2 Jquery Grid pagination is not working
  To: user@struts.apache.org; cool_bansa...@yahoo.co.in
 
  Hi,
 
  Kindly make sure prevent NullPointerExceptin in data accessing
  If data may null then control using your pojo
 
 
  On Fri, Mar 1, 2013 at 6:13 PM, Arun Bansal 
  cool_bansa...@yahoo.co.inwrote:
 
   Hi
   I'm using Struts2 jquery Grid plugin. My problem is
   pagination is not working in the grid. I have selected all the required
   attributes.
   Can you please tell me what may be the problem?
   Thanks in advance
  
   Arun Bansal
 
 
 
 
  --
  Regards
  Kaunain Ahmad
  9015435286                           
-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org

Re: Struts2 Jquery Grid pagination is not working

2013-03-02 Thread Kaunain Ahmad
Hi,

Kindly make sure prevent NullPointerExceptin in data accessing
If data may null then control using your pojo


On Fri, Mar 1, 2013 at 6:13 PM, Arun Bansal cool_bansa...@yahoo.co.inwrote:

 Hi
 I'm using Struts2 jquery Grid plugin. My problem is
 pagination is not working in the grid. I have selected all the required
 attributes.
 Can you please tell me what may be the problem?
 Thanks in advance

 Arun Bansal




-- 
Regards
Kaunain Ahmad
9015435286


RE: Struts2 Jquery Grid pagination is not working

2013-03-02 Thread Martin Gainty
There are so many items that can cause this problem
Did you create Action class which will handle interactions from mouse and 
keyboard-input
Did you declare the Taglibs to be included 
did you create the Pojos and assigned the individual Tag Attributes to populate 
from and update the Pojo attributes

Did you check
Martin Gainty
__
Jogi és Bizalmassági kinyilatkoztatás/Verzicht und 
Vertraulichkeitanmerkung/Note de déni et de confidentialité
Ez az
üzenet bizalmas. Ha nem ön az akinek szánva volt, akkor kérjük, hogy
jelentse azt nekünk vissza. Semmiféle továbbítása vagy másolatának
készítése nem megengedett. Ez az üzenet csak ismeret cserét szolgál és
semmiféle jogi alkalmazhatósága sincs. Mivel az electronikus üzenetek
könnyen megváltoztathatóak, ezért minket semmi felelöség nem terhelhet
ezen üzenet tartalma miatt.
Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger 
sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung 
oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem 
Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. 
Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung 
fuer den Inhalt uebernehmen.
Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le 
destinataire prévu, nous te demandons avec bonté que pour satisfaire informez 
l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est 
interdite. Ce message sert à l'information seulement et n'aura pas n'importe 
quel effet légalement obligatoire. Étant donné que les email peuvent facilement 
être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité 
pour le contenu fourni.

 From: kaunain.ahmad2...@gmail.com
 Date: Sat, 2 Mar 2013 14:50:41 +0530
 Subject: Re: Struts2 Jquery Grid pagination is not working
 To: user@struts.apache.org; cool_bansa...@yahoo.co.in

 Hi,

 Kindly make sure prevent NullPointerExceptin in data accessing
 If data may null then control using your pojo


 On Fri, Mar 1, 2013 at 6:13 PM, Arun Bansal cool_bansa...@yahoo.co.inwrote:

  Hi
  I'm using Struts2 jquery Grid plugin. My problem is
  pagination is not working in the grid. I have selected all the required
  attributes.
  Can you please tell me what may be the problem?
  Thanks in advance
 
  Arun Bansal




 --
 Regards
 Kaunain Ahmad
 9015435286  
-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



RE: Struts2 Jquery Grid pagination is not working

2013-03-02 Thread Martin Gainty
TO gain an thorough understanding of how Struts Grid Control works please 
follow this tutorial
http://code.google.com/p/struts2-jquery/wiki/GridTag
 

For understanding in-depth architetcure and how to associate DOM attach-points 
to your TagClasses read
the Struts JQuery Grid Showcase tutorial by Johannes Geppert
http://struts.jgeppert.com/struts2-jquery-grid-showcase/index.action

Viel Gluck!
Martin 
__
Verzicht und Vertraulichkeitanmerkung

Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger 
sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung 
oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem 
Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. 
Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung 
fuer den Inhalt uebernehmen.


 From: mgai...@hotmail.com
 To: user@struts.apache.org
 Subject: RE: Struts2 Jquery Grid pagination is not working
 Date: Sat, 2 Mar 2013 06:25:13 -0500

 There are so many items that can cause this problem
 Did you create Action class which will handle interactions from mouse and 
 keyboard-input
 Did you declare the Taglibs to be included
 did you create the Pojos and assigned the individual Tag Attributes to 
 populate from and update the Pojo attributes

 Did you check
 Martin Gainty
 __
 Jogi és Bizalmassági kinyilatkoztatás/Verzicht und 
 Vertraulichkeitanmerkung/Note de déni et de confidentialité
 Ez az
 üzenet bizalmas. Ha nem ön az akinek szánva volt, akkor kérjük, hogy
 jelentse azt nekünk vissza. Semmiféle továbbítása vagy másolatának
 készítése nem megengedett. Ez az üzenet csak ismeret cserét szolgál és
 semmiféle jogi alkalmazhatósága sincs. Mivel az electronikus üzenetek
 könnyen megváltoztathatóak, ezért minket semmi felelöség nem terhelhet
 ezen üzenet tartalma miatt.
 Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger 
 sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung 
 oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich 
 dem Austausch von Informationen und entfaltet keine rechtliche 
 Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von E-Mails koennen 
 wir keine Haftung fuer den Inhalt uebernehmen.
 Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le 
 destinataire prévu, nous te demandons avec bonté que pour satisfaire informez 
 l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci 
 est interdite. Ce message sert à l'information seulement et n'aura pas 
 n'importe quel effet légalement obligatoire. Étant donné que les email 
 peuvent facilement être sujets à la manipulation, nous ne pouvons accepter 
 aucune responsabilité pour le contenu fourni.
 
  From: kaunain.ahmad2...@gmail.com
  Date: Sat, 2 Mar 2013 14:50:41 +0530
  Subject: Re: Struts2 Jquery Grid pagination is not working
  To: user@struts.apache.org; cool_bansa...@yahoo.co.in
 
  Hi,
 
  Kindly make sure prevent NullPointerExceptin in data accessing
  If data may null then control using your pojo
 
 
  On Fri, Mar 1, 2013 at 6:13 PM, Arun Bansal 
  cool_bansa...@yahoo.co.inwrote:
 
   Hi
   I'm using Struts2 jquery Grid plugin. My problem is
   pagination is not working in the grid. I have selected all the required
   attributes.
   Can you please tell me what may be the problem?
   Thanks in advance
  
   Arun Bansal
 
 
 
 
  --
  Regards
  Kaunain Ahmad
  9015435286
-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



Struts2 Jquery Grid pagination is not working

2013-03-01 Thread Arun Bansal
Hi
I'm using Struts2 jquery Grid plugin. My problem is pagination is not
working in the grid. I have selected all the required attributes.
Can you please tell me what may be the problem?
Thanks in advance

Arun Bansal


This e-mail and/or attachments are confidential and may also be legally 
privileged. If you are not the intended recipient, any disclosure, copying, 
distribution or action taken relying on the contents is strictly prohibited and 
may be unlawful. If you have received this communication in error, please 
notify the sender immediately by responding to this e-mail and deleting the 
contents of the e-mail  related attachments from your system. Though MPS 
Limited has taken reasonable steps to ensure no viruses are present in this 
e-mail, it cannot accept responsibility for any loss or damage arising from the 
use of this e-mail or attachments. No contracts may be concluded with MPS 
through e-mail communication. Please consider the environment before printing 
this e-mail.

-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



Re: Pagination using Struts library

2011-05-19 Thread arin_12
Recently when I tried the jQuery Grid from the website it is not able to edit
the grid. Seems like there is some problem. I have posted the same in the
forum. Dont know it has been fixed or not. Try this below url.

http://www.weinfreund.de/struts2-jquery-grid-showcase/index.action



--
View this message in context: 
http://struts.1045723.n5.nabble.com/Pagination-using-Struts-library-tp4386974p4408918.html
Sent from the Struts - User mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



Re: Pagination using Struts library

2011-05-19 Thread Pankaj Gupta
Hi Dave,

Just need quick help.
Is display tag  supported  for struts1.2.


Thanks,
Pankaj

On Wed, May 11, 2011 at 5:36 PM, Dave Newton davelnew...@gmail.com wrote:

 There isn't any; Struts is largely front-end neutral. Check the jQuery
 plugin, otherwise your best bet is to use any of the myriad pagination
 libs.

 DisplayTag is open-source, BTW.

 Dave
   On May 11, 2011 7:48 AM, Pankaj Gupta pankaj.hug...@gmail.com wrote:
  Hi,
 
  But I am looking for Pagination in Struts framework specifically.
 
  Thanks,
  Pankaj
 
 
 
 
 
 
  On Wed, May 11, 2011 at 3:51 PM, Kushan Jayathilake kusha...@gmail.com
 wrote:
 
  Well.. if you are going with JSF, there are tags with pagination support
  builtin.
  you just need to pass the collection and the page size for that
 
  On Wed, May 11, 2011 at 3:25 PM, Pankaj Gupta pankaj.hug...@gmail.com
  wrote:
 
   Hi All,
  
   Is there any way Jaakata /SUN library or any api in struts which can
 be
   used
   to
   implement pagination.
  
  
   I suggested Display tag and Page Loader, but since they are not open
   source,
   not ssociated with Jakarta/Sun, user is not agreeging to it?
  
  
   Any suggestions would be appreciated?
  
  
   Thanks,
   Pankaj
  
 
 
 
  --
  Regards
  Kushan Jayathilake
 



RE: Pagination using Struts library

2011-05-19 Thread Jason Pyeron
 -Original Message-
 From: Pankaj Gupta [mailto:pankaj.hug...@gmail.com] 
 Sent: Thursday, May 19, 2011 10:12
 To: Struts Users Mailing List
 Subject: Re: Pagination using Struts library
 
 Hi Dave,
 
 Just need quick help.
 Is display tag  supported  for struts1.2.
 

http://www.displaytag.org/1.2/ is niether unsuported or supported, is is a JSP
tag library not associated with Struts.

To answer if it can be used, yes I have used it in struts 1 and struts 2.

 
 Thanks,
 Pankaj
 
 On Wed, May 11, 2011 at 5:36 PM, Dave Newton 
 davelnew...@gmail.com wrote:
 
  There isn't any; Struts is largely front-end neutral. Check 
 the jQuery 
  plugin, otherwise your best bet is to use any of the myriad 
 pagination 
  libs.
 
  DisplayTag is open-source, BTW.
 
  Dave
On May 11, 2011 7:48 AM, Pankaj Gupta 
 pankaj.hug...@gmail.com wrote:
   Hi,
  
   But I am looking for Pagination in Struts framework specifically.
  
   Thanks,
   Pankaj
  
  
  
  
  
  
   On Wed, May 11, 2011 at 3:51 PM, Kushan Jayathilake 
  kusha...@gmail.com
  wrote:
  
   Well.. if you are going with JSF, there are tags with pagination 
   support builtin.
   you just need to pass the collection and the page size for that
  
   On Wed, May 11, 2011 at 3:25 PM, Pankaj Gupta 
   pankaj.hug...@gmail.com
   wrote:
  
Hi All,
   
Is there any way Jaakata /SUN library or any api in 
 struts which 
can
  be
used
to
implement pagination.
   
   
I suggested Display tag and Page Loader, but since 
 they are not 
open source, not ssociated with Jakarta/Sun, user is not 
agreeging to it?
   
   
Any suggestions would be appreciated?
   
   
Thanks,
Pankaj
   
  
  
  
   --
   Regards
   Kushan Jayathilake
  
 
 


--
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
-   -
- Jason Pyeron  PD Inc. http://www.pdinc.us -
- Principal Consultant  10 West 24th Street #100-
- +1 (443) 269-1555 x333Baltimore, Maryland 21218   -
-   -
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
This message is copyright PD Inc, subject to license 20080407P00.

 


-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



Re: Pagination using Struts library

2011-05-18 Thread Zoran Avtarovski
You'll need to make some mods for displaytag to work with S2.

1. You'll need to add an acceptableParameterName method to your classes,
we just add it to our base class.
2. You have to add the Displaytag responseOverrideFilter to your web.xml
for the export to work

Having said all that, we are moving away from display tag and to jQuery
Datatables. Honestly our life has become so much easier since we started
incorporating more client side javascript. The code is easier to follow,
ajax calls make security a breeze and the server load is considerably
lighter.

Z.

On 14/05/11 12:04 AM, Miguel mig...@almeida.at wrote:

Speaking of which, Dave, have you used displaytag recently?

It seems to have been abandoned. It's good for regular usage, but as
time goes by we start having some problems.

For example, with the export options (displaytag can export to excel,
pdf, etc automatically) we see a ognl WARN:

WARN  [CommonsLogger.java:60] : Error setting expression '6578706f7274'
with value '[Ljava.lang.String;@385b5df0'
ognl.ExpressionSyntaxException: Malformed OGNL expression: 6578706f7274
[ognl.ParseException: Encountered  INT_LITERAL 7274  at line 1,
column 9.

This is due to the fact that displaytag's export url is
Someaction.action?6578706f7274=1d-16533-e=5 and 6578706f7274 doesn't
seem to be valid on recent versions.

Miguel Almeida


Dave,On Wed, 2011-05-11 at 08:06 -0400, Dave Newton wrote:

 
 DisplayTag is open-source, BTW. 



-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



Re: Pagination using Struts library

2011-05-13 Thread Miguel
Speaking of which, Dave, have you used displaytag recently?

It seems to have been abandoned. It's good for regular usage, but as
time goes by we start having some problems.

For example, with the export options (displaytag can export to excel,
pdf, etc automatically) we see a ognl WARN:

WARN  [CommonsLogger.java:60] : Error setting expression '6578706f7274'
with value '[Ljava.lang.String;@385b5df0'
ognl.ExpressionSyntaxException: Malformed OGNL expression: 6578706f7274
[ognl.ParseException: Encountered  INT_LITERAL 7274  at line 1,
column 9.

This is due to the fact that displaytag's export url is
Someaction.action?6578706f7274=1d-16533-e=5 and 6578706f7274 doesn't
seem to be valid on recent versions.

Miguel Almeida


Dave,On Wed, 2011-05-11 at 08:06 -0400, Dave Newton wrote:

 
 DisplayTag is open-source, BTW. 


Re: Pagination using Struts library

2011-05-13 Thread Dave Newton
On Fri, May 13, 2011 at 10:04 AM, Miguel wrote:
 Speaking of which, Dave, have you used displaytag recently?

I've never used it at all.

 This is due to the fact that displaytag's export url is
 Someaction.action?6578706f7274=1d-16533-e=5 and 6578706f7274 doesn't
 seem to be valid on recent versions.

OGNL expects valid property names, things starting with numbers aren't
valid Java property names.

Dave

-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



Re: Pagination using Struts library

2011-05-13 Thread Emi Lu

displaytag1.2 + struts2 + tiles works good for me.

displaytag is a very good tool for pagination.

http://www.displaytag.org/1.2/

Emi


On 05/11/2011 07:47 AM, Pankaj Gupta wrote:

Hi,

But I am looking for Pagination in Struts framework specifically.

Thanks,
Pankaj






On Wed, May 11, 2011 at 3:51 PM, Kushan Jayathilakekusha...@gmail.comwrote:


Well.. if you are going with JSF, there are tags with pagination support
builtin.
you just need to pass the collection and the page size for that

On Wed, May 11, 2011 at 3:25 PM, Pankaj Guptapankaj.hug...@gmail.com

wrote:



Hi All,

Is there any way Jaakata /SUN library or any api in struts which can be
used
to
implement pagination.


I suggested Display tag and Page Loader, but since they are not open
source,
not ssociated with Jakarta/Sun, user is not agreeging to it?


Any suggestions would be appreciated?


Thanks,
Pankaj





--
Regards
Kushan Jayathilake






--
Emi Lu, ENCS, Concordia University, Montreal H3G 1M8
em...@encs.concordia.ca+1 514 848-2424 x5884

-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



Re: Pagination using Struts library

2011-05-13 Thread Emi Lu



displaytag1.2 + struts2 + tiles works good for me.

displaytag is a very good tool for pagination.

http://www.displaytag.org/1.2/


Another paging feature I found just recently is: DataTables

http://www.datatables.net/index

The online doc shows good features, but I have not done production app 
based on it yet.


while for displaytag, I do use it a lot with struts2 + displaytag + tiles.

Displaytag does good with paging for struts2.

Emi






On 05/11/2011 07:47 AM, Pankaj Gupta wrote:

Hi,

But I am looking for Pagination in Struts framework specifically.

Thanks,
Pankaj






On Wed, May 11, 2011 at 3:51 PM, Kushan
Jayathilakekusha...@gmail.comwrote:


Well.. if you are going with JSF, there are tags with pagination support
builtin.
you just need to pass the collection and the page size for that

On Wed, May 11, 2011 at 3:25 PM, Pankaj Guptapankaj.hug...@gmail.com

wrote:



Hi All,

Is there any way Jaakata /SUN library or any api in struts which can be
used
to
implement pagination.


I suggested Display tag and Page Loader, but since they are not open
source,
not ssociated with Jakarta/Sun, user is not agreeging to it?


Any suggestions would be appreciated?


Thanks,
Pankaj





--
Regards
Kushan Jayathilake









--
Emi Lu, ENCS, Concordia University, Montreal H3G 1M8
em...@encs.concordia.ca+1 514 848-2424 x5884

-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



Pagination using Struts library

2011-05-11 Thread Pankaj Gupta
Hi All,

Is there any way Jaakata /SUN library or any api in struts which can be used
to
implement pagination.


I suggested Display tag and Page Loader, but since they are not open source,
not ssociated with Jakarta/Sun, user is not agreeging to it?


Any suggestions would be appreciated?


Thanks,
Pankaj


Re: Pagination using Struts library

2011-05-11 Thread Kushan Jayathilake
Well.. if you are going with JSF, there are tags with pagination support
builtin.
you just need to pass the collection and the page size for that

On Wed, May 11, 2011 at 3:25 PM, Pankaj Gupta pankaj.hug...@gmail.comwrote:

 Hi All,

 Is there any way Jaakata /SUN library or any api in struts which can be
 used
 to
 implement pagination.


 I suggested Display tag and Page Loader, but since they are not open
 source,
 not ssociated with Jakarta/Sun, user is not agreeging to it?


 Any suggestions would be appreciated?


 Thanks,
 Pankaj




-- 
Regards
Kushan Jayathilake


Re: Pagination using Struts library

2011-05-11 Thread Pankaj Gupta
Hi,

But I am looking for Pagination in Struts framework specifically.

Thanks,
Pankaj






On Wed, May 11, 2011 at 3:51 PM, Kushan Jayathilake kusha...@gmail.comwrote:

 Well.. if you are going with JSF, there are tags with pagination support
 builtin.
 you just need to pass the collection and the page size for that

 On Wed, May 11, 2011 at 3:25 PM, Pankaj Gupta pankaj.hug...@gmail.com
 wrote:

  Hi All,
 
  Is there any way Jaakata /SUN library or any api in struts which can be
  used
  to
  implement pagination.
 
 
  I suggested Display tag and Page Loader, but since they are not open
  source,
  not ssociated with Jakarta/Sun, user is not agreeging to it?
 
 
  Any suggestions would be appreciated?
 
 
  Thanks,
  Pankaj
 



 --
 Regards
 Kushan Jayathilake



Re: Pagination using Struts library

2011-05-11 Thread Dave Newton
There isn't any; Struts is largely front-end neutral. Check the jQuery
plugin, otherwise your best bet is to use any of the myriad pagination libs.

DisplayTag is open-source, BTW.

Dave
 On May 11, 2011 7:48 AM, Pankaj Gupta pankaj.hug...@gmail.com wrote:
 Hi,

 But I am looking for Pagination in Struts framework specifically.

 Thanks,
 Pankaj






 On Wed, May 11, 2011 at 3:51 PM, Kushan Jayathilake kusha...@gmail.com
wrote:

 Well.. if you are going with JSF, there are tags with pagination support
 builtin.
 you just need to pass the collection and the page size for that

 On Wed, May 11, 2011 at 3:25 PM, Pankaj Gupta pankaj.hug...@gmail.com
 wrote:

  Hi All,
 
  Is there any way Jaakata /SUN library or any api in struts which can be
  used
  to
  implement pagination.
 
 
  I suggested Display tag and Page Loader, but since they are not open
  source,
  not ssociated with Jakarta/Sun, user is not agreeging to it?
 
 
  Any suggestions would be appreciated?
 
 
  Thanks,
  Pankaj
 



 --
 Regards
 Kushan Jayathilake



Re: Pagination using Struts library

2011-05-11 Thread Amol Ghotankar
You have struts 2 jquery plugin for grid and full hibernate support plugin
to do pagination.



With Best Regards,

Amol Ghotankar
Technical Lead
Cursive Technologies Pvt. Ltd.
www.cursivetech.com


Pagination with Struts 2.1.8 ?

2010-03-29 Thread Celinio Fernandes
Hi, 
This is a classic requirement.
I have this table, in a JSP, that I have created with the table html tag and 
that i have filled using the s:iterator.
This s:iterator tag iterates over an ArrayList defined in my action.
There are too many lines and I need to add some pagination functionality to it.
What solutions are out there and which one do you recommend ? 
Thanks for your feedback.


  

Re: Pagination with Struts 2.1.8 ?

2010-03-29 Thread Alex Rodriguez Lopez

Display tag, works like a charm:

http://displaytag.sourceforge.net/1.2/tut_basic.html

Works with lists and handles pagination, data export, I recommend it!

Em 29-03-2010 11:07, Celinio Fernandes escreveu:

Hi,
This is a classic requirement.
I have this table, in a JSP, that I have created with thetable  html tag and that i 
have filled using thes:iterator.
Thiss:iterator  tag iterates over an ArrayList defined in my action.
There are too many lines and I need to add some pagination functionality to it.
What solutions are out there and which one do you recommend ?
Thanks for your feedback.






-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



RE: Pagination with Struts 2.1.8 ?

2010-03-29 Thread adam pinder

 
i prefer pagination to be db based so there is a minimum amount of data 
retrieved and held in memory. i.e. only retrieve what you will display. don't 
retrieve 200 records in memory and page through them.
 
adam



 Date: Mon, 29 Mar 2010 03:07:25 -0700
 From: cel...@yahoo.com
 Subject: Pagination with Struts 2.1.8 ?
 To: user@struts.apache.org

 Hi,
 This is a classic requirement.
 I have this table, in a JSP, that I have created with the 
html tag and that i have filled using the .
 This tag iterates over an ArrayList defined in my action.
 There are too many lines and I need to add some pagination functionality to 
 it.
 What solutions are out there and which one do you recommend ?
 Thanks for your feedback.


 
_
Do you have a story that started on Hotmail? Tell us now
http://clk.atdmt.com/UKM/go/195013117/direct/01/
-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



Re: Pagination with Struts 2.1.8 ?

2010-03-29 Thread Celinio Fernandes
Thanks. I already read about it but does it work well with Struts 2 ?


--- On Mon, 3/29/10, Alex Rodriguez Lopez alo...@flordeutopia.pt wrote:


From: Alex Rodriguez Lopez alo...@flordeutopia.pt
Subject: Re: Pagination with Struts 2.1.8 ?
To: user@struts.apache.org
Date: Monday, March 29, 2010, 4:32 AM


Display tag, works like a charm:

http://displaytag.sourceforge.net/1.2/tut_basic.html

Works with lists and handles pagination, data export, I recommend it!

Em 29-03-2010 11:07, Celinio Fernandes escreveu:
 Hi,
 This is a classic requirement.
 I have this table, in a JSP, that I have created with thetable  html tag 
 and that i have filled using thes:iterator.
 Thiss:iterator  tag iterates over an ArrayList defined in my action.
 There are too many lines and I need to add some pagination functionality to 
 it.
 What solutions are out there and which one do you recommend ?
 Thanks for your feedback.





-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org




  

Re: Pagination with Struts 2.1.8 ?

2010-03-29 Thread Alex Rodriguez Lopez

Em 29-03-2010 15:09, Celinio Fernandes escreveu:

Thanks. I already read about it but does it work well with Struts 2 ?



Yes, I'm using it with S2. Include it in JSPs like this
%@ taglib uri=http://displaytag.sf.net; prefix=display %

then, for example for a listing of users:

display:table pagesize=10 sort=list defaultsort=1

 uid=user

name=users

  requestURI=user_list.action



  display:column sortable=true

  titleKey=label.name property=name

  href=user_input.action paramId=id

  paramProperty=userID/

%-- other columns of users --%

/display:table

This assumes you have a list of beans called users in your action, 
with a propertry named name, with getters/setters.


Of course, if performance is a problem pagination would be best done at 
DB level as Adam suggested.




--- On Mon, 3/29/10, Alex Rodriguez Lopezalo...@flordeutopia.pt  wrote:


From: Alex Rodriguez Lopezalo...@flordeutopia.pt
Subject: Re: Pagination with Struts 2.1.8 ?
To: user@struts.apache.org
Date: Monday, March 29, 2010, 4:32 AM


Display tag, works like a charm:

http://displaytag.sourceforge.net/1.2/tut_basic.html

Works with lists and handles pagination, data export, I recommend it!

Em 29-03-2010 11:07, Celinio Fernandes escreveu:

Hi,
This is a classic requirement.
I have this table, in a JSP, that I have created with thetable   html tag and that 
i have filled using thes:iterator.
Thiss:iterator   tag iterates over an ArrayList defined in my action.
There are too many lines and I need to add some pagination functionality to it.
What solutions are out there and which one do you recommend ?
Thanks for your feedback.






-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org








-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



Re: Pagination with Struts 2.1.8 ?

2010-03-29 Thread Zoran Avtarovski
We use display tag extensively and it ties into S2 really well.

We¹ve set it up to use DB based pagination so you only load the items you
need and it ties into S2 i18n properties.

We also use jqGrid which is based on jQuery and works really well where you
want ajax based tables.

Z.
 
 Thanks. I already read about it but does it work well with Struts 2 ?
 
 
 --- On Mon, 3/29/10, Alex Rodriguez Lopez alo...@flordeutopia.pt wrote:
 
 
 From: Alex Rodriguez Lopez alo...@flordeutopia.pt
 Subject: Re: Pagination with Struts 2.1.8 ?
 To: user@struts.apache.org
 Date: Monday, March 29, 2010, 4:32 AM
 
 
 Display tag, works like a charm:
 
 http://displaytag.sourceforge.net/1.2/tut_basic.html
 
 Works with lists and handles pagination, data export, I recommend it!
 
 Em 29-03-2010 11:07, Celinio Fernandes escreveu:
  Hi,
  This is a classic requirement.
  I have this table, in a JSP, that I have created with thetable  html tag
 and that i have filled using thes:iterator.
  Thiss:iterator  tag iterates over an ArrayList defined in my action.
  There are too many lines and I need to add some pagination functionality to
 it.
  What solutions are out there and which one do you recommend ?
  Thanks for your feedback.
 
 
 
 
 
 -
 To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
 For additional commands, e-mail: user-h...@struts.apache.org
 
 
 
 



Re: Pagination

2009-05-25 Thread Lukasz Lenart
2009/5/25 Murugesh muruges...@gmail.com:
 can any one help me to achieve this?

Could you show how did you try to use DisplayTag, some code example?


Regards
-- 
Lukasz
http://www.lenart.org.pl/

-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



Re: Pagination

2009-05-25 Thread Murugesh
thanks Lukasz
 what i did is,

added  :displaytag-1.2.jar in the lib
added  :%@ taglib uri=http://displaytag.sf.net; prefix=display%  in my
JSP
code snippet is
 display:table  list=minDataList requestURI=calldata.action
pagesize=10 
 display:column property=name/
 display:column property=id/
/display:table
thanks
murugesh

On Mon, May 25, 2009 at 12:15 PM, Lukasz Lenart 
lukasz.len...@googlemail.com wrote:

 2009/5/25 Murugesh muruges...@gmail.com:
  can any one help me to achieve this?

 Could you show how did you try to use DisplayTag, some code example?


 Regards
 --
 Lukasz
 http://www.lenart.org.pl/

 -
 To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
 For additional commands, e-mail: user-h...@struts.apache.org




Re: Pagination

2009-05-25 Thread Lukasz Lenart
2009/5/25 Murugesh muruges...@gmail.com:
  display:table  list=minDataList requestURI=calldata.action
 pagesize=10 
  display:column property=name/
  display:column property=id/
 /display:table

Could you also show action code?


Regards
-- 
Lukasz
http://www.lenart.org.pl/

-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



Re: Pagination

2009-05-25 Thread Chris Pratt
You might try:

display:table list=${minDataList} requestURI=calldata.action
pagesize=10

instead.
  (*Chris*)

On Sun, May 24, 2009 at 11:56 PM, Murugesh muruges...@gmail.com wrote:

 thanks Lukasz
  what i did is,

 added  :displaytag-1.2.jar in the lib
 added  :%@ taglib uri=http://displaytag.sf.net; prefix=display%  in
 my
 JSP
 code snippet is
  display:table  list=minDataList requestURI=calldata.action
 pagesize=10 
  display:column property=name/
  display:column property=id/
 /display:table
 thanks
 murugesh

 On Mon, May 25, 2009 at 12:15 PM, Lukasz Lenart 
 lukasz.len...@googlemail.com wrote:

  2009/5/25 Murugesh muruges...@gmail.com:
   can any one help me to achieve this?
 
  Could you show how did you try to use DisplayTag, some code example?
 
 
  Regards
  --
  Lukasz
  http://www.lenart.org.pl/
 
  -
  To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
  For additional commands, e-mail: user-h...@struts.apache.org
 
 



Re: Pagination

2009-05-25 Thread Murugesh
public class PacketsAction extends ActionBase {
 public ManagePacketsAction() {

   public String call30Mdata() throws ServiceException {
 DataManager dm = new DataManager();
   setMinDataList(dm.getMinsData(null, getall))
try {

}


 private ListminInfoVO minDataList = null;
 public ListminInfoVO getMinDataList() {
return minDataList;
}

public void setMinDataList(ListminInfoVO minDataList) {
this.minDataList = minDataList;
}
}


On Mon, May 25, 2009 at 12:35 PM, Lukasz Lenart 
lukasz.len...@googlemail.com wrote:

 2009/5/25 Murugesh muruges...@gmail.com:
   display:table  list=minDataList requestURI=calldata.action
  pagesize=10 
   display:column property=name/
   display:column property=id/
  /display:table

 Could you also show action code?


 Regards
 --
 Lukasz
 http://www.lenart.org.pl/

 -
 To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
 For additional commands, e-mail: user-h...@struts.apache.org




Re: Pagination

2009-05-25 Thread Lukasz Lenart
End the last thing, action's configuration. As I noticed you don't use
execute() method and maybe your are missing call to method
call30Mdata(). And also try Chris suggestion.


Regards
-- 
Lukasz
http://www.lenart.org.pl/

-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



Re: Pagination

2009-05-25 Thread Murugesh
No Lukasz

my struts.xml is
action name=calldata class=com.PacketsAction method=call30Mdata
result/WEB-INF/components/packet/showData.jsp/result
/action

i am getting list with s:iterator but not displaytag

On Mon, May 25, 2009 at 12:53 PM, Lukasz Lenart 
lukasz.len...@googlemail.com wrote:

 End the last thing, action's configuration. As I noticed you don't use
 execute() method and maybe your are missing call to method
 call30Mdata(). And also try Chris suggestion.


 Regards
 --
 Lukasz
 http://www.lenart.org.pl/

 -
 To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
 For additional commands, e-mail: user-h...@struts.apache.org




Re: Pagination

2009-05-25 Thread Lukasz Lenart
2009/5/25 Murugesh muruges...@gmail.com:
 i am getting list with s:iterator but not displaytag

Did you try Chris suggestion?


Regards
-- 
Lukasz
http://www.lenart.org.pl/

-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



Re: Pagination

2009-05-25 Thread Murugesh
Wow. it getting displayed. but if i click next page it got an error
ie requset resource not available.
is i missed anything?

On Mon, May 25, 2009 at 1:17 PM, Lukasz Lenart lukasz.len...@googlemail.com
 wrote:

 2009/5/25 Murugesh muruges...@gmail.com:
  i am getting list with s:iterator but not displaytag

 Did you try Chris suggestion?


 Regards
 --
 Lukasz
 http://www.lenart.org.pl/

 -
 To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
 For additional commands, e-mail: user-h...@struts.apache.org




Re: Pagination

2009-05-25 Thread Murugesh
i got fix for this. i missed request uri in displaytag.
thanks for helping a lot.

is their any way to modify the display?

like the page no's and no of items coming on top , i need it to be bottom.
so where i have to chnage this?
On Mon, May 25, 2009 at 2:19 PM, Murugesh muruges...@gmail.com wrote:

 Wow. it getting displayed. but if i click next page it got an error
 ie requset resource not available.
 is i missed anything?

   On Mon, May 25, 2009 at 1:17 PM, Lukasz Lenart 
 lukasz.len...@googlemail.com wrote:

 2009/5/25 Murugesh muruges...@gmail.com:
  i am getting list with s:iterator but not displaytag

 Did you try Chris suggestion?


 Regards
 --
 Lukasz
 http://www.lenart.org.pl/

 -
 To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
 For additional commands, e-mail: user-h...@struts.apache.org





Re: Pagination

2009-05-25 Thread Lukasz Lenart
2009/5/25 Murugesh muruges...@gmail.com:
 is their any way to modify the display?

 like the page no's and no of items coming on top , i need it to be bottom.
 so where i have to chnage this?

Check DisplayTag documentation, for begining that [1]

[1] http://displaytag.sourceforge.net/1.2/configuration.html


Regards
-- 
Lukasz
http://www.lenart.org.pl/

-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



Re: Pagination

2009-05-25 Thread Bhaarat Sharma
adding to this question...

I've asked this before as well but not gotten a clearer answer.

What if in the same example as this but when user clicks 'next' you want to
go back and fetch the results again.  Will that be possible with display
tag.  What I mean is that lets say that the list is being populated by a
stored procedure.  Because of  performance, we are only getting 50 items at
a time from the store procedure and displaying 50 on one page.  When user
clicks Next, we want to go back and execute the SP to get the next set of 50
results.

Any hints on how to achieve this with display tags?

On Mon, May 25, 2009 at 5:14 AM, Lukasz Lenart lukasz.len...@googlemail.com
 wrote:

 2009/5/25 Murugesh muruges...@gmail.com:
  is their any way to modify the display?
 
  like the page no's and no of items coming on top , i need it to be
 bottom.
  so where i have to chnage this?

 Check DisplayTag documentation, for begining that [1]

 [1] http://displaytag.sourceforge.net/1.2/configuration.html


 Regards
 --
 Lukasz
 http://www.lenart.org.pl/

 -
 To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
 For additional commands, e-mail: user-h...@struts.apache.org




RE: Pagination

2009-05-25 Thread Martin Gainty

referencing the documentation lucas provided we can see the number of 
records/page are provided by 
displaytag.properties
(version 1.1)
sort.amount=50

(version 1.2)
pagesize=50

..concerning how to manipulate what you're reading all you have to do is 
replace the InputStream with one from DS ...
package org.displaytag.sample.DisplaySourceServlet
protected final void doGet(HttpServletRequest request, HttpServletResponse 
response) throws ServletException,
IOException
{
String jspFile = request.getRequestURI();
// lastIndexOf(.) can't be null, since the servlet is mapped to 
.source
jspFile = jspFile.substring(0, jspFile.lastIndexOf(.)); //$NON-NLS-1$
if (jspFile.lastIndexOf(/) != -1) //$NON-NLS-1$
{
jspFile = jspFile.substring(jspFile.lastIndexOf(/) + 1); 
//$NON-NLS-1$
}
// only want to show sample pages, don't play with url!
if (!jspFile.startsWith(example-)) //$NON-NLS-1$
{
throw new ServletException(Invalid file selected:  + jspFile); 
//$NON-NLS-1$
}
String fullName = EXAMPLE_FOLDER + jspFile;

//InputStream inputStream = 
getServletContext().getResourceAsStream(fullName);

//replace the inputStream logic with a stream obtained from configured 
DataSource
//if you are using Oracle you can use oracle.sql.OracleJdbc2SQLInput 
readAsciiStream which returns InputStream

readAsciiStream
 public InputStream readAsciiStream() throws SQLException
(Return the next attribute in the stream as a stream of ASCII characters.
)

JavaDoc available at
http://www.oracle.com/technology/docs/tech/java/sqlj_jdbc/doc_library/javadoc/oracle.sql.OracleJdbc2SQLInput.html#_top_

and simply use that InputStream to read DataSource contents from

anyone else?
Martin 
__ 
Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité
 
Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger 
sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung 
oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem 
Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. 
Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung 
fuer den Inhalt uebernehmen.
Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le 
destinataire prévu, nous te demandons avec bonté que pour satisfaire informez 
l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est 
interdite. Ce message sert à l'information seulement et n'aura pas n'importe 
quel effet légalement obligatoire. Étant donné que les email peuvent facilement 
être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité 
pour le contenu fourni.




 Date: Mon, 25 May 2009 08:49:33 -0400
 Subject: Re: Pagination
 From: bhaara...@gmail.com
 To: user@struts.apache.org
 
 adding to this question...
 
 I've asked this before as well but not gotten a clearer answer.
 
 What if in the same example as this but when user clicks 'next' you want to
 go back and fetch the results again.  Will that be possible with display
 tag.  What I mean is that lets say that the list is being populated by a
 stored procedure.  Because of  performance, we are only getting 50 items at
 a time from the store procedure and displaying 50 on one page.  When user
 clicks Next, we want to go back and execute the SP to get the next set of 50
 results.
 
 Any hints on how to achieve this with display tags?
 
 On Mon, May 25, 2009 at 5:14 AM, Lukasz Lenart lukasz.len...@googlemail.com
  wrote:
 
  2009/5/25 Murugesh muruges...@gmail.com:
   is their any way to modify the display?
  
   like the page no's and no of items coming on top , i need it to be
  bottom.
   so where i have to chnage this?
 
  Check DisplayTag documentation, for begining that [1]
 
  [1] http://displaytag.sourceforge.net/1.2/configuration.html
 
 
  Regards
  --
  Lukasz
  http://www.lenart.org.pl/
 
  -
  To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
  For additional commands, e-mail: user-h...@struts.apache.org
 
 

_
Hotmail® has ever-growing storage! Don’t worry about storage limits.
http://windowslive.com/Tutorial/Hotmail/Storage?ocid=TXT_TAGLM_WL_HM_Tutorial_Storage1_052009

Re: Pagination

2009-05-25 Thread Chris Pratt
Yup, it's possible, just read the DisplayTag documentation on external
pagination.
  (*Chris*)

On Mon, May 25, 2009 at 5:49 AM, Bhaarat Sharma bhaara...@gmail.com wrote:

 adding to this question...

 I've asked this before as well but not gotten a clearer answer.

 What if in the same example as this but when user clicks 'next' you want to
 go back and fetch the results again.  Will that be possible with display
 tag.  What I mean is that lets say that the list is being populated by a
 stored procedure.  Because of  performance, we are only getting 50 items at
 a time from the store procedure and displaying 50 on one page.  When user
 clicks Next, we want to go back and execute the SP to get the next set of
 50
 results.

 Any hints on how to achieve this with display tags?

 On Mon, May 25, 2009 at 5:14 AM, Lukasz Lenart 
 lukasz.len...@googlemail.com
  wrote:

  2009/5/25 Murugesh muruges...@gmail.com:
   is their any way to modify the display?
  
   like the page no's and no of items coming on top , i need it to be
  bottom.
   so where i have to chnage this?
 
  Check DisplayTag documentation, for begining that [1]
 
  [1] http://displaytag.sourceforge.net/1.2/configuration.html
 
 
  Regards
  --
  Lukasz
  http://www.lenart.org.pl/
 
  -
  To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
  For additional commands, e-mail: user-h...@struts.apache.org
 
 



Pagination

2009-05-24 Thread Murugesh
Hi cheers,

currently i am using belowjsp code to display my list DataList details.
now i want to add pagination using displaytag 1.2.

table width=100% border=0 cellpadding=0 cellspacing=0
 s:if test=minDataList.size  0
  s:iterator value=DataList status=min_status  
   tr
tds:property value=name//td
tds:property value=id//td
   /tr
  /s:iterator
 /s:if
/table

i have followed some steps but not getting any out put.

can any one help me to achieve this?

thnaks
murugesh


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 denis.cabas...@gmail.com wrote:
 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 recommend using a
 s:set tag to set a variable holding the list in the page context.
 Your example of displaytag is missing :
 s:set name=testList scope=page value=testList id=testList/s:set
 (before the display tag)

 Denis.

 On Thu, Apr 23, 2009 at 1:01 PM, Stefano Tranquillini 
 stefano.tranquill...@gmail.com wrote:

 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 ListItem items = new ArrayListItem();
     private int tot;
    private int page = 0;
    private int size = 1;
    private List pages = new ArrayList();

    public AllItem() {
    }

   �...@override
    public String execute() throws Exception {
           ListItem temp = mgmt.getAllItem();
        if (page  0) {
            page--;
        }
        if (size  temp.size()) {
            size = temp.size();
        }
        int start = Math.min(page * size, temp.size());
        if (start == temp.size()) {
            start = start - size;
        }
        int end = Math.min((page + 1) * size, temp.size());
        items = new ArrayListItem();
        items = temp.subList(start, end);
        tot = getItems().size();
        pages = new ArrayList();
        for (int i = 0; i  temp.size(); i = i + size) {
            pages.add((i / size) + 1);
         }
        return SUCCESS;
    }

    public ListItem getItems() {
        return items;
    }

     public int getTot() {
        return tot;
    }

    public int getPage() {
        return page;
    }

    public void setPage(int page) {
        this.page = page;
    }

    public int getSize() {
        return size;
    }

    public void setSize(int size) {
        this.size = size;
    }

    public List getPages() {
        return pages;
    }

 jsp

 %@ taglib uri=/struts-tags prefix=s %


     s:iterator value=items 
        do your presentation of the data

    /s:iterator

 this is the menu change the action!
    s:iterator value=pages 
        a href=s:url action=showShop namespace=/shop
               s:param name=page
                   s:property/
               /s:param
               s:param name=size value=%{size}/
           /s:url
            s:property/
        /a
    /s:iterator

 On Thu, Apr 23, 2009 at 18:28, Andy Sykes a.sy...@ucl.ac.uk wrote:
  I found I had to use the s:set 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
  variable is empty.
 
  eg. s:set name=items value=items scope=request/
 
  On 23 Apr 2009, at 17:11, Stefano Tranquillini wrote:
 
  i done this:
 
  this is the class taht create the list
 
    private ListItem items = new ArrayListItem();
    private Integer resultSize;
 
    public AllItem() {
    }
 
    @Override
    public String execute() throws Exception {
       items= mgmt.getAllItem();
        resultSize=getItems().size();
        return SUCCESS;
    }
 
    public ListItem getItems() {
        return items;
    }
 
 
    public Integer getResultSize() {
        return resultSize;
    }
 
  this is the page
 
  %@ taglib uri=/struts-tags prefix=s %
  %@ taglib uri=http://displaytag.sf.net; prefix=display %
 
  display:table name=testList pagesize=2 partialList=true
  size=resultSize
    display:column property=name /
    display:column property=descitipion /
    display:column property=prize  /
  /display:table
 
  the result is:
  Nothing found to display.
 
  On Thu, Apr 23, 2009 at 17:52, Stefano Tranquillini
  stefano.tranquill...@gmail.com wrote:
 
  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 bhaara...@gmail.com
  wrote:
 
  u have to first create TestList for the code to work
 
  On Thu, Apr 23, 2009 at 11:36 AM, Stefano elste...@gmail.com 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.apache.jasper.JasperException: Unable to compile class for JSP:
 
  An error occurred at line: 1 in the jsp file: /jsp/shop/shop.jsp
  TestList cannot be resolved to a type
  1: % request.setAttribute( test, new TestList(2, false) ); %
  2

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/shop.jsp
TestList cannot be resolved to a type
1: % request.setAttribute( test, new TestList(2, false) ); %
2: %@ taglib uri=/struts-tags prefix=s %
3:
4:

idea?


2009/4/23 André Diniz adi...@gmail.com:
 It's just a sample pages...

 2009/4/22 Dave Newton newton.d...@yahoo.com

 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.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 results (pretend 120 is really 1200
 or 12000).

 they are iterating through a long 12000 record list and then just putting
 that into pages.  What I was looking for was something that would show 50
 results of 12000 on first page then when NEXT is cliked, it against goes
 to
 DB to get next 50 records.



 On Wed, Apr 22, 2009 at 4:22 PM, Jim Kiley jhki...@summa-tech.com
 wrote:

  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

 On Wed, Apr 22, 2009 at 4:18 PM, Bhaarat Sharma bhaara...@gmail.com
 wrote:

  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 newton.d...@yahoo.com
 wrote:

  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



 -
 To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
 For additional commands, e-mail: user-h...@struts.apache.org




 --
 Jim Kiley
 Senior Technical Consultant | Summa
 [p] 412.258.3346
 http://www.summa-tech.com




 -
 To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
 For additional commands, e-mail: user-h...@struts.apache.org




 --
 André Diniz
 +55 (41) 9997-5567
 e-mail alternativo: diniz...@msn.com




-- 
Stefano

-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



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, 2009 at 11:36 AM, Stefano elste...@gmail.com 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.apache.jasper.JasperException: Unable to compile class for JSP:

 An error occurred at line: 1 in the jsp file: /jsp/shop/shop.jsp
 TestList cannot be resolved to a type
 1: % request.setAttribute( test, new TestList(2, false) ); %
 2: %@ taglib uri=/struts-tags prefix=s %
 3:
 4:

 idea?


 2009/4/23 André Diniz adi...@gmail.com:
  It's just a sample pages...
 
  2009/4/22 Dave Newton newton.d...@yahoo.com
 
  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.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 results (pretend 120 is really
 1200
  or 12000).
 
  they are iterating through a long 12000 record list and then just
 putting
  that into pages.  What I was looking for was something that would show
 50
  results of 12000 on first page then when NEXT is cliked, it against
 goes
  to
  DB to get next 50 records.
 
 
 
  On Wed, Apr 22, 2009 at 4:22 PM, Jim Kiley jhki...@summa-tech.com
  wrote:
 
   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
 
  On Wed, Apr 22, 2009 at 4:18 PM, Bhaarat Sharma bhaara...@gmail.com
  wrote:
 
   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 newton.d...@yahoo.com
  wrote:
 
   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
 
 
 
 
 -
  To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
  For additional commands, e-mail: user-h...@struts.apache.org
 
 
 
 
  --
  Jim Kiley
  Senior Technical Consultant | Summa
  [p] 412.258.3346
  http://www.summa-tech.com
 
 
 
 
  -
  To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
  For additional commands, e-mail: user-h...@struts.apache.org
 
 
 
 
  --
  André Diniz
  +55 (41) 9997-5567
  e-mail alternativo: diniz...@msn.com
 



 --
 Stefano

 -
 To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
 For additional commands, e-mail: user-h...@struts.apache.org




-- 
Jim Kiley
Senior Technical Consultant | Summa
[p] 412.258.3346
http://www.summa-tech.com


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 elste...@gmail.com 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.apache.jasper.JasperException: Unable to compile class for JSP:

 An error occurred at line: 1 in the jsp file: /jsp/shop/shop.jsp
 TestList cannot be resolved to a type
 1: % request.setAttribute( test, new TestList(2, false) ); %
 2: %@ taglib uri=/struts-tags prefix=s %
 3:
 4:

 idea?


 2009/4/23 André Diniz adi...@gmail.com:
  It's just a sample pages...
 
  2009/4/22 Dave Newton newton.d...@yahoo.com
 
  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.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 results (pretend 120 is really
 1200
  or 12000).
 
  they are iterating through a long 12000 record list and then just
 putting
  that into pages.  What I was looking for was something that would show
 50
  results of 12000 on first page then when NEXT is cliked, it against
 goes
  to
  DB to get next 50 records.
 
 
 
  On Wed, Apr 22, 2009 at 4:22 PM, Jim Kiley jhki...@summa-tech.com
  wrote:
 
   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
 
  On Wed, Apr 22, 2009 at 4:18 PM, Bhaarat Sharma bhaara...@gmail.com
  wrote:
 
   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 newton.d...@yahoo.com
  wrote:
 
   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
 
 
 
 
 -
  To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
  For additional commands, e-mail: user-h...@struts.apache.org
 
 
 
 
  --
  Jim Kiley
  Senior Technical Consultant | Summa
  [p] 412.258.3346
  http://www.summa-tech.com
 
 
 
 
  -
  To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
  For additional commands, e-mail: user-h...@struts.apache.org
 
 
 
 
  --
  André Diniz
  +55 (41) 9997-5567
  e-mail alternativo: diniz...@msn.com
 



 --
 Stefano

 -
 To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
 For additional commands, e-mail: user-h...@struts.apache.org




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 bhaara...@gmail.com wrote:
 u have to first create TestList for the code to work

 On Thu, Apr 23, 2009 at 11:36 AM, Stefano elste...@gmail.com 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.apache.jasper.JasperException: Unable to compile class for JSP:

 An error occurred at line: 1 in the jsp file: /jsp/shop/shop.jsp
 TestList cannot be resolved to a type
 1: % request.setAttribute( test, new TestList(2, false) ); %
 2: %@ taglib uri=/struts-tags prefix=s %
 3:
 4:

 idea?


 2009/4/23 André Diniz adi...@gmail.com:
  It's just a sample pages...
 
  2009/4/22 Dave Newton newton.d...@yahoo.com
 
  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.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 results (pretend 120 is really
 1200
  or 12000).
 
  they are iterating through a long 12000 record list and then just
 putting
  that into pages.  What I was looking for was something that would show
 50
  results of 12000 on first page then when NEXT is cliked, it against
 goes
  to
  DB to get next 50 records.
 
 
 
  On Wed, Apr 22, 2009 at 4:22 PM, Jim Kiley jhki...@summa-tech.com
  wrote:
 
   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
 
  On Wed, Apr 22, 2009 at 4:18 PM, Bhaarat Sharma bhaara...@gmail.com
  wrote:
 
   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 newton.d...@yahoo.com
  wrote:
 
   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
 
 
 
 
 -
  To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
  For additional commands, e-mail: user-h...@struts.apache.org
 
 
 
 
  --
  Jim Kiley
  Senior Technical Consultant | Summa
  [p] 412.258.3346
  http://www.summa-tech.com
 
 
 
 
  -
  To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
  For additional commands, e-mail: user-h...@struts.apache.org
 
 
 
 
  --
  André Diniz
  +55 (41) 9997-5567
  e-mail alternativo: diniz...@msn.com
 



 --
 Stefano

 -
 To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
 For additional commands, e-mail: user-h...@struts.apache.org






-- 
Stefano

-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



Re: pagination in struts2

2009-04-23 Thread Stefano Tranquillini
i done this:

this is the class taht create the list

private ListItem items = new ArrayListItem();
private Integer resultSize;

public AllItem() {
}

@Override
public String execute() throws Exception {
   items= mgmt.getAllItem();
resultSize=getItems().size();
return SUCCESS;
}

public ListItem getItems() {
return items;
}


public Integer getResultSize() {
return resultSize;
}

this is the page

%@ taglib uri=/struts-tags prefix=s %
%@ taglib uri=http://displaytag.sf.net; prefix=display %

display:table name=testList pagesize=2 partialList=true
size=resultSize
display:column property=name /
display:column property=descitipion /
display:column property=prize  /
 /display:table

the result is:
Nothing found to display.

On Thu, Apr 23, 2009 at 17:52, Stefano Tranquillini
stefano.tranquill...@gmail.com wrote:
 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 bhaara...@gmail.com wrote:
 u have to first create TestList for the code to work

 On Thu, Apr 23, 2009 at 11:36 AM, Stefano elste...@gmail.com 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.apache.jasper.JasperException: Unable to compile class for JSP:

 An error occurred at line: 1 in the jsp file: /jsp/shop/shop.jsp
 TestList cannot be resolved to a type
 1: % request.setAttribute( test, new TestList(2, false) ); %
 2: %@ taglib uri=/struts-tags prefix=s %
 3:
 4:

 idea?


 2009/4/23 André Diniz adi...@gmail.com:
  It's just a sample pages...
 
  2009/4/22 Dave Newton newton.d...@yahoo.com
 
  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.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 results (pretend 120 is really
 1200
  or 12000).
 
  they are iterating through a long 12000 record list and then just
 putting
  that into pages.  What I was looking for was something that would show
 50
  results of 12000 on first page then when NEXT is cliked, it against
 goes
  to
  DB to get next 50 records.
 
 
 
  On Wed, Apr 22, 2009 at 4:22 PM, Jim Kiley jhki...@summa-tech.com
  wrote:
 
   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
 
  On Wed, Apr 22, 2009 at 4:18 PM, Bhaarat Sharma bhaara...@gmail.com
  wrote:
 
   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 newton.d...@yahoo.com
  wrote:
 
   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
 
 
 
 
 -
  To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
  For additional commands, e-mail: user-h...@struts.apache.org
 
 
 
 
  --
  Jim Kiley
  Senior Technical Consultant | Summa
  [p] 412.258.3346
  http://www.summa-tech.com
 
 
 
 
  -
  To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
  For additional commands, e-mail: user-h...@struts.apache.org
 
 
 
 
  --
  André Diniz
  +55 (41) 9997-5567
  e-mail alternativo: diniz...@msn.com
 



 --
 Stefano

 -
 To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
 For additional commands, e-mail: user-h...@struts.apache.org






 --
 Stefano




-- 
Stefano

-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



Re: pagination in struts2

2009-04-23 Thread Andy Sykes
I found I had to use the s:set 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 variable is empty.


eg. s:set name=items value=items scope=request/

On 23 Apr 2009, at 17:11, Stefano Tranquillini wrote:


i done this:

this is the class taht create the list

   private ListItem items = new ArrayListItem();
   private Integer resultSize;

   public AllItem() {
   }

   @Override
   public String execute() throws Exception {
  items= mgmt.getAllItem();
   resultSize=getItems().size();
   return SUCCESS;
   }

   public ListItem getItems() {
   return items;
   }


   public Integer getResultSize() {
   return resultSize;
   }

this is the page

%@ taglib uri=/struts-tags prefix=s %
%@ taglib uri=http://displaytag.sf.net; prefix=display %

display:table name=testList pagesize=2 partialList=true
size=resultSize
   display:column property=name /
   display:column property=descitipion /
   display:column property=prize  /
/display:table

the result is:
Nothing found to display.

On Thu, Apr 23, 2009 at 17:52, Stefano Tranquillini
stefano.tranquill...@gmail.com wrote:

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 bhaara...@gmail.com  
wrote:

u have to first create TestList for the code to work

On Thu, Apr 23, 2009 at 11:36 AM, Stefano elste...@gmail.com  
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.apache.jasper.JasperException: Unable to compile class for JSP:

An error occurred at line: 1 in the jsp file: /jsp/shop/shop.jsp
TestList cannot be resolved to a type
1: % request.setAttribute( test, new TestList(2, false) ); %
2: %@ taglib uri=/struts-tags prefix=s %
3:
4:

idea?


2009/4/23 André Diniz adi...@gmail.com:

It's just a sample pages...

2009/4/22 Dave Newton newton.d...@yahoo.com

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.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 results (pretend 120 is  
really

1200

or 12000).

they are iterating through a long 12000 record list and then  
just

putting
that into pages.  What I was looking for was something that  
would show

50
results of 12000 on first page then when NEXT is cliked, it  
against

goes

to
DB to get next 50 records.



On Wed, Apr 22, 2009 at 4:22 PM, Jim Kiley jhki...@summa-tech.com 


wrote:

 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

On Wed, Apr 22, 2009 at 4:18 PM, Bhaarat Sharma bhaara...@gmail.com 


wrote:

 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 newton.d...@yahoo.com 


wrote:

 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





-

To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org





--
Jim Kiley
Senior Technical Consultant | Summa
[p] 412.258.3346
http://www.summa-tech.com






-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org





--
André Diniz
+55 (41) 9997-5567
e-mail alternativo: diniz...@msn.com





--
Stefano

-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org








--
Stefano





--
Stefano

-
To unsubscribe, 

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 ListItem items = new ArrayListItem();
private int tot;
private int page = 0;
private int size = 1;
private List pages = new ArrayList();

public AllItem() {
}

@Override
public String execute() throws Exception {
  ListItem temp = mgmt.getAllItem();
if (page  0) {
page--;
}
if (size  temp.size()) {
size = temp.size();
}
int start = Math.min(page * size, temp.size());
if (start == temp.size()) {
start = start - size;
}
int end = Math.min((page + 1) * size, temp.size());
items = new ArrayListItem();
items = temp.subList(start, end);
tot = getItems().size();
pages = new ArrayList();
for (int i = 0; i  temp.size(); i = i + size) {
pages.add((i / size) + 1);
}
return SUCCESS;
}

public ListItem getItems() {
return items;
}

public int getTot() {
return tot;
}

public int getPage() {
return page;
}

public void setPage(int page) {
this.page = page;
}

public int getSize() {
return size;
}

public void setSize(int size) {
this.size = size;
}

public List getPages() {
return pages;
}

jsp

%@ taglib uri=/struts-tags prefix=s %


s:iterator value=items 
do your presentation of the data

/s:iterator

this is the menu change the action!
s:iterator value=pages 
a href=s:url action=showShop namespace=/shop
   s:param name=page
   s:property/
   /s:param
   s:param name=size value=%{size}/
   /s:url
s:property/
/a
/s:iterator

On Thu, Apr 23, 2009 at 18:28, Andy Sykes a.sy...@ucl.ac.uk wrote:
 I found I had to use the s:set 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
 variable is empty.

 eg. s:set name=items value=items scope=request/

 On 23 Apr 2009, at 17:11, Stefano Tranquillini wrote:

 i done this:

 this is the class taht create the list

   private ListItem items = new ArrayListItem();
   private Integer resultSize;

   public AllItem() {
   }

   @Override
   public String execute() throws Exception {
      items= mgmt.getAllItem();
       resultSize=getItems().size();
       return SUCCESS;
   }

   public ListItem getItems() {
       return items;
   }


   public Integer getResultSize() {
       return resultSize;
   }

 this is the page

 %@ taglib uri=/struts-tags prefix=s %
 %@ taglib uri=http://displaytag.sf.net; prefix=display %

 display:table name=testList pagesize=2 partialList=true
 size=resultSize
   display:column property=name /
   display:column property=descitipion /
   display:column property=prize  /
 /display:table

 the result is:
 Nothing found to display.

 On Thu, Apr 23, 2009 at 17:52, Stefano Tranquillini
 stefano.tranquill...@gmail.com wrote:

 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 bhaara...@gmail.com
 wrote:

 u have to first create TestList for the code to work

 On Thu, Apr 23, 2009 at 11:36 AM, Stefano elste...@gmail.com 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.apache.jasper.JasperException: Unable to compile class for JSP:

 An error occurred at line: 1 in the jsp file: /jsp/shop/shop.jsp
 TestList cannot be resolved to a type
 1: % request.setAttribute( test, new TestList(2, false) ); %
 2: %@ taglib uri=/struts-tags prefix=s %
 3:
 4:

 idea?


 2009/4/23 André Diniz adi...@gmail.com:

 It's just a sample pages...

 2009/4/22 Dave Newton newton.d...@yahoo.com

 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.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 results (pretend 120 is
 really

 1200

 or 12000).

 they are iterating through a long 12000 record list and then just

 putting

 that into pages.  What I was looking for was something that would

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 recommend using a
s:set tag to set a variable holding the list in the page context.
Your example of displaytag is missing :
s:set name=testList scope=page value=testList id=testList/s:set
(before the display tag)

Denis.

On Thu, Apr 23, 2009 at 1:01 PM, Stefano Tranquillini 
stefano.tranquill...@gmail.com wrote:

 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 ListItem items = new ArrayListItem();
 private int tot;
private int page = 0;
private int size = 1;
private List pages = new ArrayList();

public AllItem() {
}

@Override
public String execute() throws Exception {
   ListItem temp = mgmt.getAllItem();
if (page  0) {
page--;
}
if (size  temp.size()) {
size = temp.size();
}
int start = Math.min(page * size, temp.size());
if (start == temp.size()) {
start = start - size;
}
int end = Math.min((page + 1) * size, temp.size());
items = new ArrayListItem();
items = temp.subList(start, end);
tot = getItems().size();
pages = new ArrayList();
for (int i = 0; i  temp.size(); i = i + size) {
pages.add((i / size) + 1);
 }
return SUCCESS;
}

public ListItem getItems() {
return items;
}

 public int getTot() {
return tot;
}

public int getPage() {
return page;
}

public void setPage(int page) {
this.page = page;
}

public int getSize() {
return size;
}

public void setSize(int size) {
this.size = size;
}

public List getPages() {
return pages;
}

 jsp

 %@ taglib uri=/struts-tags prefix=s %


 s:iterator value=items 
do your presentation of the data

/s:iterator

 this is the menu change the action!
s:iterator value=pages 
a href=s:url action=showShop namespace=/shop
   s:param name=page
   s:property/
   /s:param
   s:param name=size value=%{size}/
   /s:url
s:property/
/a
/s:iterator

 On Thu, Apr 23, 2009 at 18:28, Andy Sykes a.sy...@ucl.ac.uk wrote:
  I found I had to use the s:set 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
  variable is empty.
 
  eg. s:set name=items value=items scope=request/
 
  On 23 Apr 2009, at 17:11, Stefano Tranquillini wrote:
 
  i done this:
 
  this is the class taht create the list
 
private ListItem items = new ArrayListItem();
private Integer resultSize;
 
public AllItem() {
}
 
@Override
public String execute() throws Exception {
   items= mgmt.getAllItem();
resultSize=getItems().size();
return SUCCESS;
}
 
public ListItem getItems() {
return items;
}
 
 
public Integer getResultSize() {
return resultSize;
}
 
  this is the page
 
  %@ taglib uri=/struts-tags prefix=s %
  %@ taglib uri=http://displaytag.sf.net; prefix=display %
 
  display:table name=testList pagesize=2 partialList=true
  size=resultSize
display:column property=name /
display:column property=descitipion /
display:column property=prize  /
  /display:table
 
  the result is:
  Nothing found to display.
 
  On Thu, Apr 23, 2009 at 17:52, Stefano Tranquillini
  stefano.tranquill...@gmail.com wrote:
 
  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 bhaara...@gmail.com
  wrote:
 
  u have to first create TestList for the code to work
 
  On Thu, Apr 23, 2009 at 11:36 AM, Stefano elste...@gmail.com 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.apache.jasper.JasperException: Unable to compile class for JSP:
 
  An error occurred at line: 1 in the jsp file: /jsp/shop/shop.jsp
  TestList cannot be resolved to a type
  1: % request.setAttribute( test, new TestList(2, false) ); %
  2: %@ taglib uri=/struts-tags prefix=s %
  3:
  4:
 
  idea?
 
 
  2009/4/23 André Diniz adi...@gmail.com:
 
  It's just a sample pages...
 
  2009/4/22 Dave Newton newton.d...@yahoo.com
 
  http://displaytag.sourceforge.net/1.2

Re: pagination in struts2

2009-04-22 Thread Stefano Tranquillini
someone has experience with this tag?

i don't really understand how it works.

On Tue, Apr 21, 2009 at 18:39, Chris Pratt thechrispr...@gmail.com wrote:

 I'd suggest looking into DisplayTag (http://displaytag.sourceforge.net/)
   (*Chris*)

 On Tue, Apr 21, 2009 at 4:58 AM, Bhaarat Sharma bhaara...@gmail.com
 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-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



-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



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 newton.d...@yahoo.com wrote:

 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



 -
 To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
 For additional commands, e-mail: user-h...@struts.apache.org




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

On Wed, Apr 22, 2009 at 4:18 PM, Bhaarat Sharma bhaara...@gmail.com wrote:

 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 newton.d...@yahoo.com
 wrote:

  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
 
 
 
  -
  To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
  For additional commands, e-mail: user-h...@struts.apache.org
 
 




-- 
Jim Kiley
Senior Technical Consultant | Summa
[p] 412.258.3346
http://www.summa-tech.com


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 results (pretend 120 is really 1200
or 12000).

they are iterating through a long 12000 record list and then just putting
that into pages.  What I was looking for was something that would show 50
results of 12000 on first page then when NEXT is cliked, it against goes to
DB to get next 50 records.



On Wed, Apr 22, 2009 at 4:22 PM, Jim Kiley jhki...@summa-tech.com wrote:

 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

 On Wed, Apr 22, 2009 at 4:18 PM, Bhaarat Sharma bhaara...@gmail.com
 wrote:

  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 newton.d...@yahoo.com
  wrote:
 
   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
  
  
  
   -
   To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
   For additional commands, e-mail: user-h...@struts.apache.org
  
  
 



 --
 Jim Kiley
 Senior Technical Consultant | Summa
 [p] 412.258.3346
 http://www.summa-tech.com



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] http://displaytag.sourceforge.net/1.2/tut_externalSortAndPage.html
[2] 
http://displaytag.sourceforge.net/1.2/displaytag/apidocs/org/displaytag/pagination/PaginatedList.html

On 22 Apr 2009, at 22:27, Bhaarat Sharma wrote:


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 results (pretend 120 is  
really 1200

or 12000).

they are iterating through a long 12000 record list and then just  
putting
that into pages.  What I was looking for was something that would  
show 50
results of 12000 on first page then when NEXT is cliked, it against  
goes to

DB to get next 50 records.



On Wed, Apr 22, 2009 at 4:22 PM, Jim Kiley jhki...@summa-tech.com  
wrote:



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

On Wed, Apr 22, 2009 at 4:18 PM, Bhaarat Sharma bhaara...@gmail.com
wrote:

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 newton.d...@yahoo.com
wrote:


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



-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org








--
Jim Kiley
Senior Technical Consultant | Summa
[p] 412.258.3346
http://www.summa-tech.com




-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



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.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 results (pretend 120 is really 1200
or 12000).

they are iterating through a long 12000 record list and then just putting
that into pages.  What I was looking for was something that would show 50
results of 12000 on first page then when NEXT is cliked, it against goes to
DB to get next 50 records.



On Wed, Apr 22, 2009 at 4:22 PM, Jim Kiley jhki...@summa-tech.com wrote:


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

On Wed, Apr 22, 2009 at 4:18 PM, Bhaarat Sharma bhaara...@gmail.com
wrote:


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 newton.d...@yahoo.com
wrote:


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



-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org





--
Jim Kiley
Senior Technical Consultant | Summa
[p] 412.258.3346
http://www.summa-tech.com






-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



Re: pagination in struts2

2009-04-22 Thread André Diniz
It's just a sample pages...

2009/4/22 Dave Newton newton.d...@yahoo.com

 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.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 results (pretend 120 is really 1200
 or 12000).

 they are iterating through a long 12000 record list and then just putting
 that into pages.  What I was looking for was something that would show 50
 results of 12000 on first page then when NEXT is cliked, it against goes
 to
 DB to get next 50 records.



 On Wed, Apr 22, 2009 at 4:22 PM, Jim Kiley jhki...@summa-tech.com
 wrote:

  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

 On Wed, Apr 22, 2009 at 4:18 PM, Bhaarat Sharma bhaara...@gmail.com
 wrote:

  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 newton.d...@yahoo.com
 wrote:

  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



 -
 To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
 For additional commands, e-mail: user-h...@struts.apache.org




 --
 Jim Kiley
 Senior Technical Consultant | Summa
 [p] 412.258.3346
 http://www.summa-tech.com




 -
 To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
 For additional commands, e-mail: user-h...@struts.apache.org




-- 
André Diniz
+55 (41) 9997-5567
e-mail alternativo: diniz...@msn.com


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

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 bhaara...@gmail.com 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.



Re: Pagination with struts 2.x

2009-03-25 Thread mahanare

FYI, 
just recording my experience here.

I looked at displaytag it looks good but if there are some minor changes (it
encodes property names etc so when you post for sort/pagination, setting the
structs 2 action properties is difficult) other wise it looks simple.

Also I looked at jqGrid using jquery, it might take some effort but we
really get flashy UI. Also there is some thing called hdpagination another
taglibrary.

at the end as we have some complex stuff, we decided not to use these
libraries and write code on our own to meet our specific requirements.

Thanks
Harinath


Chris Pratt wrote:
 
 One very popular option is DisplayTag (http://www.displaytag.org/).
   (*Chris*)
 
 On Wed, Mar 18, 2009 at 11:08 PM, mahanare mahan...@gmail.com wrote:
 

 Hi,

 What is the best approach to display database table content page wise
 using
 struts 2?

 We used display tag few years back, but there seems another taglib pager
 taglib.

 Is pager tag lib a better option or is there any inherent support in
 struts
 2 for paging?

 Thanks
 harinath

 --
 View this message in context:
 http://www.nabble.com/Pagination-with-struts-2.x-tp22594233p22594233.html
 Sent from the Struts - User mailing list archive at Nabble.com.


 -
 To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
 For additional commands, e-mail: user-h...@struts.apache.org


 
 

-- 
View this message in context: 
http://www.nabble.com/Pagination-with-struts-2.x-tp22594233p22700830.html
Sent from the Struts - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



Re: Pagination with struts 2.x

2009-03-25 Thread Mileidys Gonzalez Prieto
I recomend jMesa... is very good and is possible to do pagination with
Ajax using limits.

On Wed, 2009-03-25 at 05:37 -0700, mahanare wrote:
 FYI, 
 just recording my experience here.
 
 I looked at displaytag it looks good but if there are some minor changes (it
 encodes property names etc so when you post for sort/pagination, setting the
 structs 2 action properties is difficult) other wise it looks simple.
 
 Also I looked at jqGrid using jquery, it might take some effort but we
 really get flashy UI. Also there is some thing called hdpagination another
 taglibrary.
 
 at the end as we have some complex stuff, we decided not to use these
 libraries and write code on our own to meet our specific requirements.
 
 Thanks
 Harinath
 
 
 Chris Pratt wrote:
  
  One very popular option is DisplayTag (http://www.displaytag.org/).
(*Chris*)
  
  On Wed, Mar 18, 2009 at 11:08 PM, mahanare mahan...@gmail.com wrote:
  
 
  Hi,
 
  What is the best approach to display database table content page wise
  using
  struts 2?
 
  We used display tag few years back, but there seems another taglib pager
  taglib.
 
  Is pager tag lib a better option or is there any inherent support in
  struts
  2 for paging?
 
  Thanks
  harinath
 
  --
  View this message in context:
  http://www.nabble.com/Pagination-with-struts-2.x-tp22594233p22594233.html
  Sent from the Struts - User mailing list archive at Nabble.com.
 
 
  -
  To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
  For additional commands, e-mail: user-h...@struts.apache.org
 
 
  
  
 


-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



Re: Pagination with struts 2.x

2009-03-25 Thread dusty

displayTag is not terrible when working with Struts propertiesthese days. 
Remember that you can get to stuff on the value stack via JSTL expressions
as well.  Which works well with displayTag.



Mileidys Gonzalez Prieto wrote:
 
 I recomend jMesa... is very good and is possible to do pagination with
 Ajax using limits.
 
 On Wed, 2009-03-25 at 05:37 -0700, mahanare wrote:
 FYI, 
 just recording my experience here.
 
 I looked at displaytag it looks good but if there are some minor changes
 (it
 encodes property names etc so when you post for sort/pagination, setting
 the
 structs 2 action properties is difficult) other wise it looks simple.
 
 Also I looked at jqGrid using jquery, it might take some effort but we
 really get flashy UI. Also there is some thing called hdpagination
 another
 taglibrary.
 
 at the end as we have some complex stuff, we decided not to use these
 libraries and write code on our own to meet our specific requirements.
 
 Thanks
 Harinath
 
 
 Chris Pratt wrote:
  
  One very popular option is DisplayTag (http://www.displaytag.org/).
(*Chris*)
  
  On Wed, Mar 18, 2009 at 11:08 PM, mahanare mahan...@gmail.com wrote:
  
 
  Hi,
 
  What is the best approach to display database table content page wise
  using
  struts 2?
 
  We used display tag few years back, but there seems another taglib
 pager
  taglib.
 
  Is pager tag lib a better option or is there any inherent support in
  struts
  2 for paging?
 
  Thanks
  harinath
 
  --
  View this message in context:
 
 http://www.nabble.com/Pagination-with-struts-2.x-tp22594233p22594233.html
  Sent from the Struts - User mailing list archive at Nabble.com.
 
 
  -
  To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
  For additional commands, e-mail: user-h...@struts.apache.org
 
 
  
  
 
 
 
 -
 To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
 For additional commands, e-mail: user-h...@struts.apache.org
 
 
 

-- 
View this message in context: 
http://www.nabble.com/Pagination-with-struts-2.x-tp22594233p22713851.html
Sent from the Struts - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



Re: Pagination and s:subset

2009-03-21 Thread Paweł Wielgus
Hi Andy,
i was always working with my home made paginators, actualy one for S1
and one for S2, one reason is i'm working with no standard database
solutions, and the other that pagination fragment is just a few line
of jsp code that can be included any where in your apps plus some kind
of convention for actions or forms. So if You will do it yourself you
will have all the control over how it behaves.
But that's just my point of view.

Best greetings,
Paweł Wielgus.

2009/3/21 Andy Sykes a.sy...@ucl.ac.uk:
 Hi list,

 After bodging my way through some pagination for a project I'm working on
 with a combination of OGNL expressions, s:subset and s:iterator, I was
 wondering if anyone had given any serious thought to the practicality of
 implementing displaytag-style pagination in S2 tags?

 Display tag is fabulous if you're working in tables; if you're not, it's a
 pain in the butt. You either have to roll your own pagination, which is a
 drag, or do a kludgy hack based on TableDecorators. If I'm missing
 something, please let me know!

 I've not brain-mapped exactly how I'd go about it, but I'm fairly sure of
 the general idea. Has anyone thought through this and seen potential
 show-stoppers?

 Cheers,
 Andy.

 -
 To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
 For additional commands, e-mail: user-h...@struts.apache.org



-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



Pagination and s:subset

2009-03-20 Thread Andy Sykes

Hi list,

After bodging my way through some pagination for a project I'm working  
on with a combination of OGNL expressions, s:subset and s:iterator, I  
was wondering if anyone had given any serious thought to the  
practicality of implementing displaytag-style pagination in S2 tags?


Display tag is fabulous if you're working in tables; if you're not,  
it's a pain in the butt. You either have to roll your own pagination,  
which is a drag, or do a kludgy hack based on TableDecorators. If I'm  
missing something, please let me know!


I've not brain-mapped exactly how I'd go about it, but I'm fairly sure  
of the general idea. Has anyone thought through this and seen  
potential show-stoppers?


Cheers,
Andy.

-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



Pagination with struts 2.x

2009-03-19 Thread mahanare

Hi,

What is the best approach to display database table content page wise using
struts 2?

We used display tag few years back, but there seems another taglib pager
taglib. 

Is pager tag lib a better option or is there any inherent support in struts
2 for paging?

Thanks
harinath

-- 
View this message in context: 
http://www.nabble.com/Pagination-with-struts-2.x-tp22594233p22594233.html
Sent from the Struts - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



Re: Pagination with struts 2.x

2009-03-19 Thread Chris Pratt
One very popular option is DisplayTag (http://www.displaytag.org/).
  (*Chris*)

On Wed, Mar 18, 2009 at 11:08 PM, mahanare mahan...@gmail.com wrote:


 Hi,

 What is the best approach to display database table content page wise using
 struts 2?

 We used display tag few years back, but there seems another taglib pager
 taglib.

 Is pager tag lib a better option or is there any inherent support in struts
 2 for paging?

 Thanks
 harinath

 --
 View this message in context:
 http://www.nabble.com/Pagination-with-struts-2.x-tp22594233p22594233.html
 Sent from the Struts - User mailing list archive at Nabble.com.


 -
 To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
 For additional commands, e-mail: user-h...@struts.apache.org




Re: Pagination Questions

2008-11-30 Thread KE LI
Hi Adam,
  Thanks for your reply. I am doing pagination like this now since I found
that using index to do searching from a range of record is quite fast, much
faster than I thought before. So I just use your suggested solution.


2008/11/30 Adam Ruggles [EMAIL PROTECTED]


 Personally I think it would be a bad idea to buffer the data from the db,
 since most users when performing a search will only look at the first page
 of results.  It would be better to simply return a limited set of results
 from the DB.  Otherwise you might be fetching data the user will never see.

 What I usually do is create an object that stores a list of the current
 result set and the total number of results.  This object I create in the
 data layer and requires two db calls.  One to get a limited list of results
 and the second to get the total item count.

 In the action I have an offset and resultsPerPage variable that I pass to
 my
 data layer.  I don't know what database you're using but most allow you to
 limit the results, using an offset and number of results.


 KE LI-2 wrote:
 
  Dear All,
  I am currently working on pagination to the result of search result. I
  want to ask which solution is better?
  1. After user chooses some criterias and then clicks the search
  button, the server will return the size of search result and the
  objects of first page of the search result. Then when user clicks the
  different page number, the server will get the data for that page from
  DB. But for this solution, it requires DB access when you click the
  page number.
 
  2.After user clicks the search button, the server will get all the
  objects(like all the films which the user wanna.). Then when user
  clicks different page number, the server will just return the data
  from memory. This seems to reduce the DB access times.
 
  3. Use some preload method to store the data for the next few pages in
  a buffer.
 
  Which solution will achieve a fast search and reduce the access load
  to the DB?
 
  Thanks a lot for your feedback!
 
  Li, Ke (Licco)
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

 --
 View this message in context:
 http://www.nabble.com/Pagination-Questions-tp20744884p20749894.html
 Sent from the Struts - User mailing list archive at Nabble.com.


 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




-- 
Best Regards,
Licco


RE: Pagination Questions

2008-11-30 Thread Martin Gainty

I agreeunless absolutely necessary caching data from the DB guarantees your 
data will be inconsistent with your last DB snapshot
If you're running out of cursors use the right cursor SELECT instead of 
updateIf you're running out of connections use connection-pools...there are 
plenty avaialble for any DB implementation
 
Dave?Martin __ Disclaimer and 
confidentiality note Everything in this e-mail and any attachments relates to 
the official business of Sender. This transmission is of a confidential nature 
and Sender does not endorse distribution to any party other than intended 
recipient. Sender does not necessarily endorse content contained within this 
transmission.  Date: Mon, 1 Dec 2008 09:40:50 +0800 From: [EMAIL PROTECTED] 
To: user@struts.apache.org Subject: Re: Pagination Questions  Hi Adam, 
Thanks for your reply. I am doing pagination like this now since I found that 
using index to do searching from a range of record is quite fast, much faster 
than I thought before. So I just use your suggested solution.   2008/11/30 
Adam Ruggles [EMAIL PROTECTED]Personally I think it would be a bad 
idea to buffer the data from the db,  since most users when performing a 
search will only look at the first page  of results. It would be better to 
simply return a limited set of results  from the DB. Otherwise you might be 
fetching data the user will never see.   What I usually do is create an 
object that stores a list of the current  result set and the total number of 
results. This object I create in the  data layer and requires two db calls. 
One to get a limited list of results  and the second to get the total item 
count.   In the action I have an offset and resultsPerPage variable that I 
pass to  my  data layer. I don't know what database you're using but most 
allow you to  limit the results, using an offset and number of results.  
  KE LI-2 wrote: Dear All,   I am currently working on 
pagination to the result of search result. I   want to ask which solution is 
better?   1. After user chooses some criterias and then clicks the search  
 button, the server will return the size of search result and the   objects 
of first page of the search result. Then when user clicks the   different 
page number, the server will get the data for that page from   DB. But for 
this solution, it requires DB access when you click the   page number.   
  2.After user clicks the search button, the server will get all the   
objects(like all the films which the user wanna.). Then when user   clicks 
different page number, the server will just return the data   from memory. 
This seems to reduce the DB access times. 3. Use some preload method 
to store the data for the next few pages in   a buffer. Which 
solution will achieve a fast search and reduce the access load   to the DB? 
Thanks a lot for your feedback! Li, Ke (Licco) 
-   To 
unsubscribe, e-mail: [EMAIL PROTECTED]   For additional commands, e-mail: 
[EMAIL PROTECTED] --  View this message in context:  
http://www.nabble.com/Pagination-Questions-tp20744884p20749894.html  Sent 
from the Struts - User mailing list archive at Nabble.com.
-  To 
unsubscribe, e-mail: [EMAIL PROTECTED]  For additional commands, e-mail: 
[EMAIL PROTECTED] --  Best Regards, Licco
_
Access your email online and on the go with Windows Live Hotmail.
http://windowslive.com/Explore/Hotmail?ocid=TXT_TAGLM_WL_hotmail_acq_access_112008

Pagination Questions

2008-11-29 Thread Licco

Dear All,
I am currently working on pagination to the result of search result. I  
want to ask which solution is better?
1. After user chooses some criterias and then clicks the search  
button, the server will return the size of search result and the  
objects of first page of the search result. Then when user clicks the  
different page number, the server will get the data for that page from  
DB. But for this solution, it requires DB access when you click the  
page number.


2.After user clicks the search button, the server will get all the  
objects(like all the films which the user wanna.). Then when user  
clicks different page number, the server will just return the data  
from memory. This seems to reduce the DB access times.


3. Use some preload method to store the data for the next few pages in  
a buffer.


Which solution will achieve a fast search and reduce the access load  
to the DB?


Thanks a lot for your feedback!

Li, Ke (Licco)

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Pagination Questions

2008-11-29 Thread Adam Ruggles

Personally I think it would be a bad idea to buffer the data from the db,
since most users when performing a search will only look at the first page
of results.  It would be better to simply return a limited set of results
from the DB.  Otherwise you might be fetching data the user will never see.

What I usually do is create an object that stores a list of the current
result set and the total number of results.  This object I create in the
data layer and requires two db calls.  One to get a limited list of results
and the second to get the total item count.

In the action I have an offset and resultsPerPage variable that I pass to my
data layer.  I don't know what database you're using but most allow you to
limit the results, using an offset and number of results.


KE LI-2 wrote:
 
 Dear All,
 I am currently working on pagination to the result of search result. I  
 want to ask which solution is better?
 1. After user chooses some criterias and then clicks the search  
 button, the server will return the size of search result and the  
 objects of first page of the search result. Then when user clicks the  
 different page number, the server will get the data for that page from  
 DB. But for this solution, it requires DB access when you click the  
 page number.
 
 2.After user clicks the search button, the server will get all the  
 objects(like all the films which the user wanna.). Then when user  
 clicks different page number, the server will just return the data  
 from memory. This seems to reduce the DB access times.
 
 3. Use some preload method to store the data for the next few pages in  
 a buffer.
 
 Which solution will achieve a fast search and reduce the access load  
 to the DB?
 
 Thanks a lot for your feedback!
 
 Li, Ke (Licco)
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

-- 
View this message in context: 
http://www.nabble.com/Pagination-Questions-tp20744884p20749894.html
Sent from the Struts - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Struts2: Ajax Pagination using JQuery

2008-06-27 Thread Raghu
Hi, I want to implement ajax pagination on my struts2 page but I am not sure
how to implement that. I am not very good in javascript and jquery but
learning them..

I have a table which will show 10 user comments at a time and there will be
pagination links for fetching next set of comments using Ajax using Jquery
$.getJSON( ) method.

I am using struts2 json plug in and it return json result. Now problem is
how to set this Json result to my struts2 tags on jsp page?

If anyone could help me on this problem then it will be great.

table width= 500 border=0 cellspacing=0
cellpadding=0
  s:if test=article.comments.size  0

s:iterator value=article.comments

tr
  td width=50
   a href=# class=wname s:property
value=userName/ /a
  /td
  td width=150
 posted on
s:date name=commentDate
format=dd-MMM- hh:mm aa /
  /td
   td width=200

  /td
/tr
  tr 
  td colspan=3
s:property value=comments/
  /td
  /tr
   /s:iterator
  span id=comments-Pagination Pagination links
goes here.. /span
 /s:if
 s:else
 No Comment Found.
 /s:else

/table

Thanks
Raghu


Re: Struts2: Ajax Pagination using JQuery

2008-06-27 Thread David Durham, Jr.
On Fri, Jun 27, 2008 at 1:43 PM, Raghu [EMAIL PROTECTED] wrote:
 Hi, I want to implement ajax pagination on my struts2 page but I am not sure
 how to implement that. I am not very good in javascript and jquery but
 learning them..


You might be interested in something like this:

http://webplicity.net/flexigrid/

Regards,
Dave

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Pagination problem with struts2,Please Please help me.

2008-05-26 Thread Varun Deep


Request to All
 
I am using pagination with display tag in struts2. Following is the code
I included in my jsp file.
I also include all the jar file. And tld files. In the respective
folders
1.try
%@ taglib uri=http://displaytag.sf.net; prefix=display %
 
The EmployeeList is coming from the Action file.
 
s:set name=listofEmployee value=EmployeeList scope=request/
 display:table name= listofEmployee  pagesize=4  class=simple
id=row
  display:column property=name /
/display:table
I also include all the jar file. And tld files. In the respective
folders. And using them as necessary.
 
 
 
I also try to perform the following code:
 
2. try
 
Web.xml
 jsp-config
  taglib
 
taglib-urihttp://displaytag.sf.net/taglib-uri
 
taglib-locationdisplaytag.tld/taglib-location
/taglib
  /jsp-config
 
employee. Jsp
 
%@ taglib uri=/WEB-INF/displaytag.tld prefix=display %
 
s:set name=listofEmployee value=EmployeeList scope=request/
 display:table name= listofEmployee  pagesize=4  class=simple
id=row
  display:column property=name /
/display:table
I also include all the jar file. And tld files. In the respective
folders. And using them as necessary.
 

-
3. try 
Web.xml
 jsp-config
  taglib
 
taglib-uri/WEB-INF/displaytag.tld/taglib-uri
 
taglib-locationdisplaytag.tld/taglib-location
/taglib
  /jsp-config
 
employee. Jsp
 
%@ taglib uri=/WEB-INF/displaytag.tld prefix=display %
 
s:set name=listofEmployee value=EmployeeList scope=request/
 display:table name= listofEmployee  pagesize=4  class=simple
id=row
  display:column property=name /
/display:table
I also include all the jar file. And tld files. In the respective
folders. And using them as necessary.
 

-
 
4. try
 
Web.xml
 jsp-config
  taglib
 
taglib-urihttp://displaytag.sf.net/taglib-uri
 
taglib-locationdisplaytag.tld/taglib-location
/taglib
  /jsp-config
 
employee. Jsp
 
%@ taglib uri= http://displaytag.sf.net; prefix=display %
 
s:set name=listofEmployee value=EmployeeList scope=request/
 display:table name= listofEmployee  pagesize=4  class=simple
id=row
  display:column property=name /
/display:table
I also include all the jar file. And tld files. In the respective
folders. And using them as necessary.
 

--
Problem.
 
But it shows nothing, not even any error message.
 
Please Please  help me. And suggest me how I have to move
 
Thanks in advance
 
Varun


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Pagination problem with struts2,Please Please help me.

2008-05-25 Thread Varun Deep
Request to All
 
I am using pagination with display tag in struts2. Following is the code
I included in my jsp file.
I also include all the jar file. And tld files. In the respective
folders
1.try
%@ taglib uri=http://displaytag.sf.net; prefix=display %
 
The EmployeeList is coming from the Action file.
 
s:set name=listofEmployee value=EmployeeList scope=request/
 display:table name= listofEmployee  pagesize=4  class=simple
id=row
  display:column property=name /
/display:table
I also include all the jar file. And tld files. In the respective
folders. And using them as necessary.
 
 
 
I also try to perform the following code:
 
2. try
 
Web.xml
 jsp-config
  taglib
 
taglib-urihttp://displaytag.sf.net/taglib-uri
 
taglib-locationdisplaytag.tld/taglib-location
/taglib
  /jsp-config
 
employee. Jsp
 
%@ taglib uri=/WEB-INF/displaytag.tld prefix=display %
 
s:set name=listofEmployee value=EmployeeList scope=request/
 display:table name= listofEmployee  pagesize=4  class=simple
id=row
  display:column property=name /
/display:table
I also include all the jar file. And tld files. In the respective
folders. And using them as necessary.
 

-
3. try 
Web.xml
 jsp-config
  taglib
 
taglib-uri/WEB-INF/displaytag.tld/taglib-uri
 
taglib-locationdisplaytag.tld/taglib-location
/taglib
  /jsp-config
 
employee. Jsp
 
%@ taglib uri=/WEB-INF/displaytag.tld prefix=display %
 
s:set name=listofEmployee value=EmployeeList scope=request/
 display:table name= listofEmployee  pagesize=4  class=simple
id=row
  display:column property=name /
/display:table
I also include all the jar file. And tld files. In the respective
folders. And using them as necessary.
 

-
 
4. try
 
Web.xml
 jsp-config
  taglib
 
taglib-urihttp://displaytag.sf.net/taglib-uri
 
taglib-locationdisplaytag.tld/taglib-location
/taglib
  /jsp-config
 
employee. Jsp
 
%@ taglib uri= http://displaytag.sf.net; prefix=display %
 
s:set name=listofEmployee value=EmployeeList scope=request/
 display:table name= listofEmployee  pagesize=4  class=simple
id=row
  display:column property=name /
/display:table
I also include all the jar file. And tld files. In the respective
folders. And using them as necessary.
 

--
Problem.
 
But it shows nothing, not even any error message.
 
Please Please  help me. And suggest me how I have to move
 
Thanks in advance
 
Varun


Re: Pagination problem with struts2,Please Please help me.

2008-05-25 Thread Musachy Barroso
Are you sure there is data on that list? try this on your page

s:property value=employeeList.size() /

musachy

On Mon, May 26, 2008 at 12:53 AM, Varun Deep [EMAIL PROTECTED] wrote:
 Request to All

 I am using pagination with display tag in struts2. Following is the code
 I included in my jsp file.
 I also include all the jar file. And tld files. In the respective
 folders
 1.try
 %@ taglib uri=http://displaytag.sf.net; prefix=display %

 The EmployeeList is coming from the Action file.

 s:set name=listofEmployee value=EmployeeList scope=request/
  display:table name= listofEmployee  pagesize=4  class=simple
 id=row
  display:column property=name /
/display:table
 I also include all the jar file. And tld files. In the respective
 folders. And using them as necessary.



 I also try to perform the following code:
 
 2. try

 Web.xml
 jsp-config
  taglib

 taglib-urihttp://displaytag.sf.net/taglib-uri

 taglib-locationdisplaytag.tld/taglib-location
/taglib
  /jsp-config

 employee. Jsp

 %@ taglib uri=/WEB-INF/displaytag.tld prefix=display %

 s:set name=listofEmployee value=EmployeeList scope=request/
  display:table name= listofEmployee  pagesize=4  class=simple
 id=row
  display:column property=name /
/display:table
 I also include all the jar file. And tld files. In the respective
 folders. And using them as necessary.

 
 -
 3. try
 Web.xml
 jsp-config
  taglib

 taglib-uri/WEB-INF/displaytag.tld/taglib-uri

 taglib-locationdisplaytag.tld/taglib-location
/taglib
  /jsp-config

 employee. Jsp

 %@ taglib uri=/WEB-INF/displaytag.tld prefix=display %

 s:set name=listofEmployee value=EmployeeList scope=request/
  display:table name= listofEmployee  pagesize=4  class=simple
 id=row
  display:column property=name /
/display:table
 I also include all the jar file. And tld files. In the respective
 folders. And using them as necessary.

 
 -

 4. try

 Web.xml
 jsp-config
  taglib

 taglib-urihttp://displaytag.sf.net/taglib-uri

 taglib-locationdisplaytag.tld/taglib-location
/taglib
  /jsp-config

 employee. Jsp

 %@ taglib uri= http://displaytag.sf.net; prefix=display %

 s:set name=listofEmployee value=EmployeeList scope=request/
  display:table name= listofEmployee  pagesize=4  class=simple
 id=row
  display:column property=name /
/display:table
 I also include all the jar file. And tld files. In the respective
 folders. And using them as necessary.

 
 --
 Problem.

 But it shows nothing, not even any error message.

 Please Please  help me. And suggest me how I have to move

 Thanks in advance

 Varun




-- 
Hey you! Would you help me to carry the stone? Pink Floyd

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Pagination problem with struts2,Please Please help me.

2008-05-25 Thread vdeep
Yes, s:property value=employeeList.size() / giving value 8 for this.

-Original Message-
From: Musachy Barroso [mailto:[EMAIL PROTECTED] 
Sent: Sunday, May 25, 2008 10:07 PM
To: Struts Users Mailing List
Subject: Re: Pagination problem with struts2,Please Please help me.

Are you sure there is data on that list? try this on your page

s:property value=employeeList.size() /

musachy

On Mon, May 26, 2008 at 12:53 AM, Varun Deep [EMAIL PROTECTED]
wrote:
 Request to All

 I am using pagination with display tag in struts2. Following is the
code
 I included in my jsp file.
 I also include all the jar file. And tld files. In the respective
 folders
 1.try
 %@ taglib uri=http://displaytag.sf.net; prefix=display %

 The EmployeeList is coming from the Action file.

 s:set name=listofEmployee value=EmployeeList scope=request/
  display:table name= listofEmployee  pagesize=4  class=simple
 id=row
  display:column property=name /
/display:table
 I also include all the jar file. And tld files. In the respective
 folders. And using them as necessary.



 I also try to perform the following code:
 
 2. try

 Web.xml
 jsp-config
  taglib

 taglib-urihttp://displaytag.sf.net/taglib-uri

 taglib-locationdisplaytag.tld/taglib-location
/taglib
  /jsp-config

 employee. Jsp

 %@ taglib uri=/WEB-INF/displaytag.tld prefix=display %

 s:set name=listofEmployee value=EmployeeList scope=request/
  display:table name= listofEmployee  pagesize=4  class=simple
 id=row
  display:column property=name /
/display:table
 I also include all the jar file. And tld files. In the respective
 folders. And using them as necessary.



 -
 3. try
 Web.xml
 jsp-config
  taglib

 taglib-uri/WEB-INF/displaytag.tld/taglib-uri

 taglib-locationdisplaytag.tld/taglib-location
/taglib
  /jsp-config

 employee. Jsp

 %@ taglib uri=/WEB-INF/displaytag.tld prefix=display %

 s:set name=listofEmployee value=EmployeeList scope=request/
  display:table name= listofEmployee  pagesize=4  class=simple
 id=row
  display:column property=name /
/display:table
 I also include all the jar file. And tld files. In the respective
 folders. And using them as necessary.



 -

 4. try

 Web.xml
 jsp-config
  taglib

 taglib-urihttp://displaytag.sf.net/taglib-uri

 taglib-locationdisplaytag.tld/taglib-location
/taglib
  /jsp-config

 employee. Jsp

 %@ taglib uri= http://displaytag.sf.net; prefix=display %

 s:set name=listofEmployee value=EmployeeList scope=request/
  display:table name= listofEmployee  pagesize=4  class=simple
 id=row
  display:column property=name /
/display:table
 I also include all the jar file. And tld files. In the respective
 folders. And using them as necessary.



 --
 Problem.

 But it shows nothing, not even any error message.

 Please Please  help me. And suggest me how I have to move

 Thanks in advance

 Varun




-- 
Hey you! Would you help me to carry the stone? Pink Floyd

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Yes RE: Pagination problem with struts2,Please Please help me.

2008-05-25 Thread Varun Deep


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: Sunday, May 25, 2008 10:17 PM
To: 'Struts Users Mailing List'
Subject: RE: Pagination problem with struts2,Please Please help me.

Yes, s:property value=employeeList.size() / giving value 8 for this.

-Original Message-
From: Musachy Barroso [mailto:[EMAIL PROTECTED] 
Sent: Sunday, May 25, 2008 10:07 PM
To: Struts Users Mailing List
Subject: Re: Pagination problem with struts2,Please Please help me.

Are you sure there is data on that list? try this on your page

s:property value=employeeList.size() /

musachy

On Mon, May 26, 2008 at 12:53 AM, Varun Deep [EMAIL PROTECTED]
wrote:
 Request to All

 I am using pagination with display tag in struts2. Following is the
code
 I included in my jsp file.
 I also include all the jar file. And tld files. In the respective
 folders
 1.try
 %@ taglib uri=http://displaytag.sf.net; prefix=display %

 The EmployeeList is coming from the Action file.

 s:set name=listofEmployee value=EmployeeList scope=request/
  display:table name= listofEmployee  pagesize=4  class=simple
 id=row
  display:column property=name /
/display:table
 I also include all the jar file. And tld files. In the respective
 folders. And using them as necessary.



 I also try to perform the following code:
 
 2. try

 Web.xml
 jsp-config
  taglib

 taglib-urihttp://displaytag.sf.net/taglib-uri

 taglib-locationdisplaytag.tld/taglib-location
/taglib
  /jsp-config

 employee. Jsp

 %@ taglib uri=/WEB-INF/displaytag.tld prefix=display %

 s:set name=listofEmployee value=EmployeeList scope=request/
  display:table name= listofEmployee  pagesize=4  class=simple
 id=row
  display:column property=name /
/display:table
 I also include all the jar file. And tld files. In the respective
 folders. And using them as necessary.



 -
 3. try
 Web.xml
 jsp-config
  taglib

 taglib-uri/WEB-INF/displaytag.tld/taglib-uri

 taglib-locationdisplaytag.tld/taglib-location
/taglib
  /jsp-config

 employee. Jsp

 %@ taglib uri=/WEB-INF/displaytag.tld prefix=display %

 s:set name=listofEmployee value=EmployeeList scope=request/
  display:table name= listofEmployee  pagesize=4  class=simple
 id=row
  display:column property=name /
/display:table
 I also include all the jar file. And tld files. In the respective
 folders. And using them as necessary.



 -

 4. try

 Web.xml
 jsp-config
  taglib

 taglib-urihttp://displaytag.sf.net/taglib-uri

 taglib-locationdisplaytag.tld/taglib-location
/taglib
  /jsp-config

 employee. Jsp

 %@ taglib uri= http://displaytag.sf.net; prefix=display %

 s:set name=listofEmployee value=EmployeeList scope=request/
  display:table name= listofEmployee  pagesize=4  class=simple
 id=row
  display:column property=name /
/display:table
 I also include all the jar file. And tld files. In the respective
 folders. And using them as necessary.



 --
 Problem.

 But it shows nothing, not even any error message.

 Please Please  help me. And suggest me how I have to move

 Thanks in advance

 Varun




-- 
Hey you! Would you help me to carry the stone? Pink Floyd

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Pagination problem with struts2,Please Please help me.

2008-05-25 Thread Engr. Jherald Gerome Lacambra
One of my samples:

%@ taglib prefix=s uri=/struts-tags%
%@ taglib prefix=display uri=http://displaytag.sf.net%
%@ page language=java contentType=text/html; charset=ISO-8859-1
pageEncoding=ISO-8859-1%
%@ taglib prefix=f uri=http://java.sun.com/jsf/core; %
%@ taglib prefix=h uri=http://java.sun.com/jsf/html; %
!DOCTYPE html PUBLIC -//W3C//DTD HTML 4.01 Transitional//EN 
http://www.w3.org/TR/html4/loose.dtd;
html
head
meta http-equiv=Content-Type content=text/html; charset=ISO-8859-1
titleInsert title here/title
script type=text/javascript src=js/all.js/script
link rel=stylesheet href=css/displaytag.css type=text/css /
/head
body

f:view
h:form id=empForms 
h:panelGrid id=empPanelGrid binding=#{empPanelGrid}

/h:panelGrid
input type=button value=Submit onclick=submitJsf()/
h:inputHidden id=method value=#{action.method}/
h:inputHidden id=id value=#{id}/
/h:form
/f:view
s:form action=add.action name=empForm id=empForm 
s:textfield id=employeeId label=Employee Id (Numeric)
maxlength=5 required=true name=employeeId /
s:textfield id=firstName label=Firstname required=true
name=firstName /
s:textfield id=lastName label=Lastname required=true
name=lastName /
s:submit value=submit/s:submit
s:hidden name=method id=method value=add/s:hidden
s:hidden name=id id=id/s:hidden
/s:form

display:table name=employeeList requestURI=index.action
decorator=org.jubabes.util.DisplayDecorator 
display:column property=employeeId title=Employee Id /
display:column property=employeeName title=NAME /
display:column property=employeeEdit /
display:column property=employeeDelete /
/display:table
/body
/html

Method in action class:

public String index(){
employeeList = this.employeeDAO.findAll();
return SUCCESS;
}





2008/5/26 Musachy Barroso [EMAIL PROTECTED]:

 Are you sure there is data on that list? try this on your page

 s:property value=employeeList.size() /

 musachy

 On Mon, May 26, 2008 at 12:53 AM, Varun Deep [EMAIL PROTECTED]
 wrote:
  Request to All
 
  I am using pagination with display tag in struts2. Following is the code
  I included in my jsp file.
  I also include all the jar file. And tld files. In the respective
  folders
  1.try
  %@ taglib uri=http://displaytag.sf.net; prefix=display %
 
  The EmployeeList is coming from the Action file.
 
  s:set name=listofEmployee value=EmployeeList scope=request/
   display:table name= listofEmployee  pagesize=4  class=simple
  id=row
   display:column property=name /
 /display:table
  I also include all the jar file. And tld files. In the respective
  folders. And using them as necessary.
 
 
 
  I also try to perform the following code:
  
  2. try
 
  Web.xml
  jsp-config
   taglib
 
  taglib-urihttp://displaytag.sf.net/taglib-uri
 
  taglib-locationdisplaytag.tld/taglib-location
 /taglib
   /jsp-config
 
  employee. Jsp
 
  %@ taglib uri=/WEB-INF/displaytag.tld prefix=display %
 
  s:set name=listofEmployee value=EmployeeList scope=request/
   display:table name= listofEmployee  pagesize=4  class=simple
  id=row
   display:column property=name /
 /display:table
  I also include all the jar file. And tld files. In the respective
  folders. And using them as necessary.
 
  
  -
  3. try
  Web.xml
  jsp-config
   taglib
 
  taglib-uri/WEB-INF/displaytag.tld/taglib-uri
 
  taglib-locationdisplaytag.tld/taglib-location
 /taglib
   /jsp-config
 
  employee. Jsp
 
  %@ taglib uri=/WEB-INF/displaytag.tld prefix=display %
 
  s:set name=listofEmployee value=EmployeeList scope=request/
   display:table name= listofEmployee  pagesize=4  class=simple
  id=row
   display:column property=name /
 /display:table
  I also include all the jar file. And tld files. In the respective
  folders. And using them as necessary.
 
  
  -
 
  4. try
 
  Web.xml
  jsp-config
   taglib
 
  taglib-urihttp://displaytag.sf.net/taglib-uri
 
  taglib-locationdisplaytag.tld/taglib-location
 /taglib
   /jsp-config
 
  employee. Jsp
 
  %@ taglib uri= http://displaytag.sf.net; prefix=display %
 
  s:set name=listofEmployee value=EmployeeList scope=request/
   display:table name= listofEmployee  pagesize=4  class=simple
  id=row
   display:column property=name /
 /display:table
  I also include all the jar file. And tld files. In the respective

Re: Problem with implementation of pagination with display tag in Struts2

2008-05-23 Thread Engr. Jherald Gerome Lacambra
1. Put the display tag libraries on WEB-INF/lib folder
2. Put the displaytag.tld on WEB-INF folder
3. add the code the ff codes on you web.xml

jsp-config
taglib
taglib-urihttp://displaytag.sf.net/taglib-uri
taglib-locationdisplaytag.tld/taglib-location
/taglib
/jsp-config

And now you are good to go.

2008/5/23 Varun Deep [EMAIL PROTECTED]:

 To all

 Hi, I want to implement pagination on my web application, for that I
 want to use the display tag. Can any one tell or suggest the step by
 step process needed to implement the display tag(means how to
 configure the struts2 application). I am using Struts2. I will be very
 much thank full to you.

 Thanks in advace

 Varun




-- 
Jherald Gerome Lacambra


RE: Problem with implementation of pagination with display tag in Struts2

2008-05-23 Thread Varun Deep
I really thankful for you advice 

  I implemented the thing in the way you suggest me. but when I put the 
Following code in the page it giving me the following exceptional
message.

The line I put in the code:
%@ taglib uri=http://displaytag.sf.net; prefix=display%

s:set name=list value=listOfEmployee /
display:table name=list pagesize=4
id=empresult
display:column property=name title=Name /
/display:table

Exceptions:

1. 
javax.servlet.ServletException:rg/apache/commons/lang/UnhandledException

2. 
java.lang.NoClassDefFoundError:org/apache/commons/lang/UnhandledExceptio
n

3.
java.lang.ClassNotFoundException:org.apache.commons.lang.UnhandledExcept
ion


please help me in this

thanks

varun




-Original Message-
From: Engr. Jherald Gerome Lacambra [mailto:[EMAIL PROTECTED] 
Sent: Thursday, May 22, 2008 11:03 PM
To: Struts Users Mailing List
Subject: Re: Problem with implementation of pagination with display tag
in Struts2

1. Put the display tag libraries on WEB-INF/lib folder
2. Put the displaytag.tld on WEB-INF folder
3. add the code the ff codes on you web.xml

jsp-config
taglib
taglib-urihttp://displaytag.sf.net/taglib-uri
taglib-locationdisplaytag.tld/taglib-location
/taglib
/jsp-config

And now you are good to go.

2008/5/23 Varun Deep [EMAIL PROTECTED]:

 To all

 Hi, I want to implement pagination on my web application, for that I
 want to use the display tag. Can any one tell or suggest the step by
 step process needed to implement the display tag(means how to
 configure the struts2 application). I am using Struts2. I will be very
 much thank full to you.

 Thanks in advace

 Varun




-- 
Jherald Gerome Lacambra


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Problem with implementation of pagination with display tag in Struts2

2008-05-23 Thread Jim Kiley
You are missing the Apache commons-lang jar from your classpath.
http://commons.apache.org/lang/ has what you need.

On Fri, May 23, 2008 at 5:47 AM, Varun Deep [EMAIL PROTECTED] wrote:

 I really thankful for you advice

  I implemented the thing in the way you suggest me. but when I put the
 Following code in the page it giving me the following exceptional
 message.

 The line I put in the code:
 %@ taglib uri=http://displaytag.sf.net; prefix=display%

 s:set name=list value=listOfEmployee /
display:table name=list pagesize=4
id=empresult
display:column property=name title=Name /
/display:table

 Exceptions:

 1.
 javax.servlet.ServletException:rg/apache/commons/lang/UnhandledException

 2.
 java.lang.NoClassDefFoundError:org/apache/commons/lang/UnhandledExceptio
 n

 3.
 java.lang.ClassNotFoundException:org.apache.commons.lang.UnhandledExcept
 ion


 please help me in this

 thanks

 varun




 -Original Message-
 From: Engr. Jherald Gerome Lacambra [mailto:[EMAIL PROTECTED]
 Sent: Thursday, May 22, 2008 11:03 PM
 To: Struts Users Mailing List
 Subject: Re: Problem with implementation of pagination with display tag
 in Struts2

 1. Put the display tag libraries on WEB-INF/lib folder
 2. Put the displaytag.tld on WEB-INF folder
 3. add the code the ff codes on you web.xml

 jsp-config
taglib
taglib-urihttp://displaytag.sf.net/taglib-uri
taglib-locationdisplaytag.tld/taglib-location
/taglib
/jsp-config

 And now you are good to go.

 2008/5/23 Varun Deep [EMAIL PROTECTED]:

  To all
 
  Hi, I want to implement pagination on my web application, for that I
  want to use the display tag. Can any one tell or suggest the step by
  step process needed to implement the display tag(means how to
  configure the struts2 application). I am using Struts2. I will be very
  much thank full to you.
 
  Thanks in advace
 
  Varun
 
 


 --
 Jherald Gerome Lacambra


 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




-- 
Jim Kiley
Technical Consultant | Summa
[p] 412.258.3346 [m] 412.445.1729
http://www.summa-tech.com


Problem with implementation of pagination with display tag in Struts2

2008-05-22 Thread Varun Deep
To all
 
Hi, I want to implement pagination on my web application, for that I
want to use the display tag. Can any one tell or suggest the step by
step process needed to implement the display tag(means how to
configure the struts2 application). I am using Struts2. I will be very
much thank full to you.
 
Thanks in advace
 
Varun
 


Re: [Struts2] Table pagination (paging)?

2008-05-19 Thread Oleg Mikheev

sol myr wrote:

  What's the Strut2 recommendation for Table Pagination (AKA Paging)?
  We're showing a large table (say, 500 records) and need to break it down to 
25 pages (20 records per page).


http://www.javaworld.com/javaworld/jw-08-2007/jw-08-ajaxtables.html


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



[Struts2] Table pagination (paging)?

2008-05-18 Thread sol myr
Hi,
   
  What's the Strut2 recommendation for Table Pagination (AKA Paging)?
  We're showing a large table (say, 500 records) and need to break it down to 
25 pages (20 records per page).
   
  So we need a widget where users can select a page:
  page:  1 2 3 4 5 .. 24 25 
   
  And then a table showing this page - e.g. page 2  is records 26-50:
  | record No. |  Date | price
  
  26. 
  27. ...
  ...  ...
  50. ...
   
  Does struts2 have tags (or design recommendations) for this, either simple or 
ajax-based?
  Note we know how to page on the Model side (oracle ROWNUM), we're just not 
sure how to integrate it with *Struts* UI.
   
  Thanks very much,
  Sollie.

   

Re: [Struts2] Table pagination (paging)?

2008-05-18 Thread David Canos
I have never used it, but I have heard good opinions about display tag
project.
http://displaytag.sourceforge.net/

Take a look at it.

2008/5/18 sol myr [EMAIL PROTECTED]:

 Hi,

  What's the Strut2 recommendation for Table Pagination (AKA Paging)?
  We're showing a large table (say, 500 records) and need to break it down
 to 25 pages (20 records per page).

  So we need a widget where users can select a page:
  page:  1 2 3 4 5 .. 24 25 

  And then a table showing this page - e.g. page 2  is records 26-50:
  | record No. |  Date | price
  
  26. 
  27. ...
  ...  ...
  50. ...

  Does struts2 have tags (or design recommendations) for this, either simple
 or ajax-based?
  Note we know how to page on the Model side (oracle ROWNUM), we're just not
 sure how to integrate it with *Struts* UI.

  Thanks very much,
  Sollie.




Re: [Struts2] Table pagination (paging)?

2008-05-18 Thread Felipe Lorenz
Yes, displaytag is simple and easy to use

On Sun, May 18, 2008 at 6:40 AM, David Canos [EMAIL PROTECTED] wrote:

 I have never used it, but I have heard good opinions about display tag
 project.
 http://displaytag.sourceforge.net/

 Take a look at it.

 2008/5/18 sol myr [EMAIL PROTECTED]:

  Hi,
 
   What's the Strut2 recommendation for Table Pagination (AKA Paging)?
   We're showing a large table (say, 500 records) and need to break it down
  to 25 pages (20 records per page).
 
   So we need a widget where users can select a page:
   page:  1 2 3 4 5 .. 24 25 
 
   And then a table showing this page - e.g. page 2  is records 26-50:
   | record No. |  Date | price
   
   26. 
   27. ...
   ...  ...
   50. ...
 
   Does struts2 have tags (or design recommendations) for this, either
 simple
  or ajax-based?
   Note we know how to page on the Model side (oracle ROWNUM), we're just
 not
  sure how to integrate it with *Struts* UI.
 
   Thanks very much,
   Sollie.
 
 



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
 google format or result in google format.
 
 Regards,'
 Bala
 
 Jaarthy wrote:
 
 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-tp15619264p16991738.html
Sent from the Struts - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



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 Google in Struts2?Any Help would be
 appreciated.
 
 Thanks,
 Aarthy
 

-- 
View this message in context: 
http://www.nabble.com/Pagination-in-Struts2-tp15619264p16807472.html
Sent from the Struts - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



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 AJAXify displaytag (AjaxAnywhere, AjaxTags)
http://demo.raibledesigns.com/appfuse-light-ajax/users.html
http://raibledesigns.com/rd/entry/the_future_of_the_displaytag
http://ajaxtags.sourceforge.net/usage.html

I don't use any of these myself, though.

The other choice you have I think is tabletags 
(http://code.google.com/p/tabletags/). The aim seems to provide the same 
functionality as displaytag but integrating better with Struts 2 e.g. 
seems to use the same template-based concept and therefore you can 
customize it entirely. But AFAIK it does not offer yet automatic paging 
like displaytag does see:

http://code.google.com/p/tabletags/issues/detail?id=10

I tried to adopt tabletags at first but it is too at an early stage yet 
i.e. lacks lot of functionality that displaytag currently offers out of 
the box.


HTH,
Best regards,
Giovanni

PS: there are lot of people subscribed to this list that are involved 
with those projects and could give a more educated guidance on 
differences among these two.


Jaarthy wrote:

Hi,

How to implement pagination as in Google in Struts2?Any Help would be
appreciated.

Thanks,
Aarthy
  



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



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 for pagination, I would 
gladly swap my own quick'n'dirty implementation for something 3rd party.



Adam

Giovanni Azua on 22/02/08 09:47, wrote:

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 AJAXify displaytag (AjaxAnywhere, AjaxTags)
http://demo.raibledesigns.com/appfuse-light-ajax/users.html
http://raibledesigns.com/rd/entry/the_future_of_the_displaytag
http://ajaxtags.sourceforge.net/usage.html

I don't use any of these myself, though.

The other choice you have I think is tabletags 
(http://code.google.com/p/tabletags/). The aim seems to provide the same 
functionality as displaytag but integrating better with Struts 2 e.g. 
seems to use the same template-based concept and therefore you can 
customize it entirely. But AFAIK it does not offer yet automatic paging 
like displaytag does see:

http://code.google.com/p/tabletags/issues/detail?id=10

I tried to adopt tabletags at first but it is too at an early stage yet 
i.e. lacks lot of functionality that displaytag currently offers out of 
the box.


HTH,
Best regards,
Giovanni

PS: there are lot of people subscribed to this list that are involved 
with those projects and could give a more educated guidance on 
differences among these two.


Jaarthy wrote:

Hi,

How to implement pagination as in Google in Struts2?Any Help would be
appreciated.



-
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

Adam Hardy wrote:
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 for pagination, I 
would gladly swap my own quick'n'dirty implementation for something 
3rd party.



Adam

Giovanni Azua on 22/02/08 09:47, wrote:

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 AJAXify displaytag (AjaxAnywhere, AjaxTags)
http://demo.raibledesigns.com/appfuse-light-ajax/users.html
http://raibledesigns.com/rd/entry/the_future_of_the_displaytag
http://ajaxtags.sourceforge.net/usage.html

I don't use any of these myself, though.

The other choice you have I think is tabletags 
(http://code.google.com/p/tabletags/). The aim seems to provide the 
same functionality as displaytag but integrating better with Struts 2 
e.g. seems to use the same template-based concept and therefore you 
can customize it entirely. But AFAIK it does not offer yet automatic 
paging like displaytag does see:

http://code.google.com/p/tabletags/issues/detail?id=10

I tried to adopt tabletags at first but it is too at an early stage 
yet i.e. lacks lot of functionality that displaytag currently offers 
out of the box.


HTH,
Best regards,
Giovanni

PS: there are lot of people subscribed to this list that are involved 
with those projects and could give a more educated guidance on 
differences among these two.


Jaarthy wrote:

Hi,

How to implement pagination as in Google in Struts2?Any Help would be
appreciated.



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Pagination in Struts2

2008-02-22 Thread Jaarthy

Hi Giovanni,

I want the results to be dislayed as they are in the Google Search results
page,not in a table form.Any help please?

Thanks,
Aarthy


Giovanni Azua-3 wrote:
 
 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 AJAXify displaytag (AjaxAnywhere, AjaxTags)
 http://demo.raibledesigns.com/appfuse-light-ajax/users.html
 http://raibledesigns.com/rd/entry/the_future_of_the_displaytag
 http://ajaxtags.sourceforge.net/usage.html
 
 I don't use any of these myself, though.
 
 The other choice you have I think is tabletags 
 (http://code.google.com/p/tabletags/). The aim seems to provide the same 
 functionality as displaytag but integrating better with Struts 2 e.g. 
 seems to use the same template-based concept and therefore you can 
 customize it entirely. But AFAIK it does not offer yet automatic paging 
 like displaytag does see:
 http://code.google.com/p/tabletags/issues/detail?id=10
 
 I tried to adopt tabletags at first but it is too at an early stage yet 
 i.e. lacks lot of functionality that displaytag currently offers out of 
 the box.
 
 HTH,
 Best regards,
 Giovanni
 
 PS: there are lot of people subscribed to this list that are involved 
 with those projects and could give a more educated guidance on 
 differences among these two.
 
 Jaarthy wrote:
 Hi,

 How to implement pagination as in Google in Struts2?Any Help would be
 appreciated.

 Thanks,
 Aarthy
   
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

-- 
View this message in context: 
http://www.nabble.com/Pagination-in-Struts2-tp15619264p15634448.html
Sent from the Struts - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



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 then you can get it to look almost like Google i.e. it won't look 
as a table but internally is one-column table.


regards,
Giovanni

Jaarthy wrote:

Hi Giovanni,

I want the results to be dislayed as they are in the Google Search results
page,not in a table form.Any help please?

Thanks,
Aarthy


Giovanni Azua-3 wrote:
  

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 AJAXify displaytag (AjaxAnywhere, AjaxTags)
http://demo.raibledesigns.com/appfuse-light-ajax/users.html
http://raibledesigns.com/rd/entry/the_future_of_the_displaytag
http://ajaxtags.sourceforge.net/usage.html

I don't use any of these myself, though.

The other choice you have I think is tabletags 
(http://code.google.com/p/tabletags/). The aim seems to provide the same 
functionality as displaytag but integrating better with Struts 2 e.g. 
seems to use the same template-based concept and therefore you can 
customize it entirely. But AFAIK it does not offer yet automatic paging 
like displaytag does see:

http://code.google.com/p/tabletags/issues/detail?id=10

I tried to adopt tabletags at first but it is too at an early stage yet 
i.e. lacks lot of functionality that displaytag currently offers out of 
the box.


HTH,
Best regards,
Giovanni

PS: there are lot of people subscribed to this list that are involved 
with those projects and could give a more educated guidance on 
differences among these two.


Jaarthy wrote:


Hi,

How to implement pagination as in Google in Struts2?Any Help would be
appreciated.

Thanks,
Aarthy
  
  

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]






  



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



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.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: help - pagination using struts2

2007-11-16 Thread rahul sharma
deko babu,
Cognizant people are supposed to be the experts
therefore they should not ask for help like this.
Unfortunately, I am also looking for the same answer
--- [EMAIL PROTECTED] wrote:

 
 HI
 
 I am not able to find out pagination using Struts2.
 
 Is there any tag lib ( which is similar to struts
 layout in Struts 1.x)
 available in Struts2.
 
 Could any one guide me or send me some sample code.
 
 thanks and regards
 DharmaRao
 
 
 This e-mail and any files transmitted with it are
 for the sole use of the intended recipient(s) and
 may contain confidential and privileged information.
 If you are not the intended recipient, please
 contact the sender by reply e-mail and destroy all
 copies of the original message. 
 Any unauthorised review, use, disclosure,
 dissemination, forwarding, printing or copying of
 this email or any action taken in reliance on this
 e-mail is strictly 
 prohibited and may be unlawful.
 
   
 

-
 To unsubscribe, e-mail:
 [EMAIL PROTECTED]
 For additional commands, e-mail:
 [EMAIL PROTECTED]
 
 



  

Get easy, one-click access to your favorites. 
Make Yahoo! your homepage.
http://www.yahoo.com/r/hs 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: help - pagination using struts2

2007-11-16 Thread Thilo Ettelt

Hello DharmaRao,

take a look at the s:iterator and s:subset Tag.
They allow you to iterate over a list for example and also take subsets 
out of it.

http://struts.apache.org/2.0.11/docs/tag-reference.html


- Thilo

[EMAIL PROTECTED] wrote:

HI

I am not able to find out pagination using Struts2.

Is there any tag lib ( which is similar to struts layout in Struts 1.x)
available in Struts2.

Could any one guide me or send me some sample code.

thanks and regards
DharmaRao


This e-mail and any files transmitted with it are for the sole use of the 
intended recipient(s) and may contain confidential and privileged information.
If you are not the intended recipient, please contact the sender by reply e-mail and destroy all copies of the original message. 
Any unauthorised review, use, disclosure, dissemination, forwarding, printing or copying of this email or any action taken in reliance on this e-mail is strictly 
prohibited and may be unlawful.


  


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

  



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: help - pagination using struts2

2007-11-16 Thread Jim Reynolds
Look into the open source project called displayTag, I think that will
save a lot of headaches and reinventing the wheel.

http://displaytag.sourceforge.net/10/jdepend-report.html




On 11/16/07, Thilo Ettelt [EMAIL PROTECTED] wrote:
 Hello DharmaRao,

 take a look at the s:iterator and s:subset Tag.
 They allow you to iterate over a list for example and also take subsets
 out of it.
 http://struts.apache.org/2.0.11/docs/tag-reference.html


 - Thilo

 [EMAIL PROTECTED] wrote:
  HI
 
  I am not able to find out pagination using Struts2.
 
  Is there any tag lib ( which is similar to struts layout in Struts 1.x)
  available in Struts2.
 
  Could any one guide me or send me some sample code.
 
  thanks and regards
  DharmaRao
 
 
  This e-mail and any files transmitted with it are for the sole use of the 
  intended recipient(s) and may contain confidential and privileged 
  information.
  If you are not the intended recipient, please contact the sender by reply 
  e-mail and destroy all copies of the original message.
  Any unauthorised review, use, disclosure, dissemination, forwarding, 
  printing or copying of this email or any action taken in reliance on this 
  e-mail is strictly
  prohibited and may be unlawful.
 
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 


 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



help - pagination using struts2

2007-11-15 Thread DharmaRao.Edula

HI

I am not able to find out pagination using Struts2.

Is there any tag lib ( which is similar to struts layout in Struts 1.x)
available in Struts2.

Could any one guide me or send me some sample code.

thanks and regards
DharmaRao


This e-mail and any files transmitted with it are for the sole use of the 
intended recipient(s) and may contain confidential and privileged information.
If you are not the intended recipient, please contact the sender by reply 
e-mail and destroy all copies of the original message. 
Any unauthorised review, use, disclosure, dissemination, forwarding, printing 
or copying of this email or any action taken in reliance on this e-mail is 
strictly 
prohibited and may be unlawful.

  

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



pagination problem pls rectify this error its very urgent for me

2007-05-08 Thread jalal udeen

hi  all


I have to use pagination in jsp  so i did it with logic:iterate  tag as
follows

i use  2 links   next and previous  in this application

but next link is not disapppearinng when it reaches the last record pls
check the condition and clear my doubt this  pls its very urgent for me

the code follows


%
 String strOffset =0;
   if(request.getParameter(pagination)!=null)
strOffset=request.getParameter(pagination);
else
   strOffset =0;
   String strLength = 2;
   int increment = Integer.parseInt(strOffset) + Integer.parseInt(strLength)
;
   String strIncOffset = String.valueOf(increment);
 ArrayList list  =(ArrayList)request.getAttribute(pattern);
int size= list.size();

   if((Integer.parseInt(strIncOffset)= size))
strIncOffset =0;

%

*Logic tags*

logic:iterate id=user name=pattern scope=request type=
com.pa.pattern.helper.Helper offset=%=strOffset%
length=%=strLength%

* Links*



*Next Link:*

**



/tr
%


if(Integer.parseInt(strOffset)!=size   !((Integer.parseInt(strOffset)size)
)  !(Integer.parseInt(strLength)=size) )

{


%
table align=right
TRTD ALIGN=a href=viewpattern.do?pagination=%=strIncOffset%

Next/a/TD

%
}

%





*prev Link*

**

%


if((strIncOffset.trim().equals(String.valueOf(size)) ||
Integer.parseInt(strOffset)

0   )  !(Integer.parseInt(strLength)=size))

{
strIncOffset=String.valueOf(Integer.parseInt(strOffset)-2);

%

TDa href=viewpattern.do?pagination=%=strIncOffset%

Prev/a/td/tr

%
}%



pls i need a help for this



thanks

jalaludeen

but next link is not disspearinng when it reaces the last one can any help
me for this

the code follows


%
 String strOffset =0;
   if(request.getParameter(pagination)!=null)
strOffset=request.getParameter(pagination);
else
   strOffset =0;
   String strLength = 2;
   int increment = Integer.parseInt(strOffset) + Integer.parseInt(strLength)
;
   String strIncOffset = String.valueOf(increment);
 ArrayList list  =(ArrayList)request.getAttribute(pattern);
int size= list.size();

   if((Integer.parseInt(strIncOffset)= size))
strIncOffset =0;

%

*Logic tags*

logic:iterate id=user name=pattern scope=request type=
com.pa.pattern.helper.Helper offset=%=strOffset%
length=%=strLength%

* Links*



*Next Link:*

**



/tr
%


if(Integer.parseInt(strOffset)!=size   !((Integer.parseInt(strOffset)size)
)  !( Integer.parseInt(strLength)=size) )

{


%
table align=right
TRTD ALIGN=a href=viewpattern.do?pagination=%=strIncOffset%

Next/a/TD

%
}

%





*prev Link*

**

%


if((strIncOffset.trim().equals(String.valueOf(size)) ||
Integer.parseInt(strOffset)

0   )  !(Integer.parseInt(strLength)=size))

{
strIncOffset=String.valueOf(Integer.parseInt(strOffset)-2);

%

TDa href=viewpattern.do?pagination=%=strIncOffset%

Prev/a/td/tr

%
}%



pls i need a help for this   pls rectify this error its very urgent for me



thanks

jalaludeen


[OT] Re: pagination problem pls rectify this error its very urgent for me

2007-05-08 Thread Dave Newton
--- jalal udeen [EMAIL PROTECTED] wrote:
 I have to use pagination in jsp  so i did it with
 logic:iterate  tag as follows

One reason you may not be getting an answer is that
this has nothing to do with Struts.

 %
   String strOffset =0;
 if(request.getParameter(pagination)!=null)
  strOffset=request.getParameter(pagination);
  else
 strOffset =0;
 String strLength = 2;
 int increment = Integer.parseInt(strOffset) +
 Integer.parseInt(strLength)
 ;
 String strIncOffset = String.valueOf(increment);
   ArrayList list 
 =(ArrayList)request.getAttribute(pattern);
  int size= list.size();
 
 if((Integer.parseInt(strIncOffset)= size))
  strIncOffset =0;
 
 %

(The following is my opinion and probably does not
reflect the views of the rest of the Struts mailing
list.)

I started to look at the code, but it was too weird
for me--it would not have survived even the most
cursory of code reviews. That made me even less likely
to want to answer the question.

What I would suggest doing (besides cleaning up the
code) is, on paper, write down a few test cases,
focusing on the edge case which is giving you problems
at the moment.

Build a truth table using your values and the logical
conditions you have and see why they might be failing.
If I don't have anything else to do at work today
perhaps I'll suck it up and take another look at it
and you can buy me a Kingfisher.

d.


__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



pagination problem

2007-05-06 Thread jalal udeen

hi  all


I have to use pagination in jsp  so i did it with logic:iterate  tag as
follows but when i use  2 links   next and previous

but next link is not disapppearinng when it reaches the last one can any
help me for this  pls

the code follows


%
 String strOffset =0;
   if(request.getParameter(pagination)!=null)
strOffset=request.getParameter(pagination);
else
   strOffset =0;
   String strLength = 2;
   int increment = Integer.parseInt(strOffset) + Integer.parseInt(strLength)
;
   String strIncOffset = String.valueOf(increment);
 ArrayList list  =(ArrayList)request.getAttribute(pattern);
int size= list.size();

   if((Integer.parseInt(strIncOffset)= size))
strIncOffset =0;

%

*Logic tags*

logic:iterate id=user name=pattern scope=request type=
com.pa.pattern.helper.Helper offset=%=strOffset%
length=%=strLength%

* Links*



*Next Link:*

**



/tr
%


if(Integer.parseInt(strOffset)!=size   !((Integer.parseInt(strOffset)size)
)  !(Integer.parseInt(strLength)=size) )

{


%
table align=right
TRTD ALIGN=a href=viewpattern.do?pagination=%=strIncOffset%

Next/a/TD

%
}

%





*prev Link*

**

%


if((strIncOffset.trim().equals(String.valueOf(size)) ||
Integer.parseInt(strOffset)

0   )  !(Integer.parseInt(strLength)=size))

{
strIncOffset=String.valueOf(Integer.parseInt(strOffset)-2);

%

TDa href=viewpattern.do?pagination=%=strIncOffset%

Prev/a/td/tr

%
}%



pls i need a help for this



thanks

jalaludeen

but next link is not disspearinng when it reaces the last one can any help
me for this

the code follows


%
 String strOffset =0;
   if(request.getParameter(pagination)!=null)
strOffset=request.getParameter(pagination);
else
   strOffset =0;
   String strLength = 2;
   int increment = Integer.parseInt(strOffset) + Integer.parseInt(strLength)
;
   String strIncOffset = String.valueOf(increment);
 ArrayList list  =(ArrayList)request.getAttribute(pattern);
int size= list.size();

   if((Integer.parseInt(strIncOffset)= size))
strIncOffset =0;

%

*Logic tags*

logic:iterate id=user name=pattern scope=request type=
com.pa.pattern.helper.Helper offset=%=strOffset%
length=%=strLength%

* Links*



*Next Link:*

**



/tr
%


if(Integer.parseInt(strOffset)!=size   !((Integer.parseInt(strOffset)size)
)  !(Integer.parseInt(strLength)=size) )

{


%
table align=right
TRTD ALIGN=a href=viewpattern.do?pagination=%=strIncOffset%

Next/a/TD

%
}

%





*prev Link*

**

%


if((strIncOffset.trim().equals(String.valueOf(size)) ||
Integer.parseInt(strOffset)

0   )  !(Integer.parseInt(strLength)=size))

{
strIncOffset=String.valueOf(Integer.parseInt(strOffset)-2);

%

TDa href=viewpattern.do?pagination=%=strIncOffset%

Prev/a/td/tr

%
}%



pls i need a help for this



thanks

jalaludeen


  1   2   >