Prashanth M H schrieb: > Hi All, > > I'm using the DisplayTag to display the list in the jsp. I'm setting > the list to SessionScope in my class and in the displaytag properties > file, i've put export.amount = list. > > I'm able to display the entire list in the jsp with pagination, but > whenever I click on the 2nd page hyperlink it is querying the > database again and displaying the next set of records. > > Since the list is set in the sessionScope and export.amount = list is > configured, can't the database hit on every click be avoided??? > > If possible, how to do it???
This is absolutely correct behavior. Displaytag queries the servlet again and the servlet asks the DB again. The servlet has to know that it is already cached within the session. Displaytag does not care. Mike ------------------------------------------------------------------------------ Come build with us! The BlackBerry® Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9-12, 2009. Register now! http://p.sf.net/sfu/devconf _______________________________________________ displaytag-user mailing list displaytag-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/displaytag-user