I downloaded this example yesterday and the one thing I noticed it was missing was the ability to sort each column. Otherwise, nice work!
Matt --- Jonathan Gibbons <[EMAIL PROTECTED]> wrote: > > Hi Stephen, > > Download my struts example, it includes paged searches implemented in > stateless session beans - actually pretend stateless session beans, so you > don't need an app server. > > http://www.faraway.co.uk/tallsoft/lowroad/ > > click on downloads, agree, examples, example 2 > > Jonathan > > > ---------------------------------------- Message History > ---------------------------------------- > > > From: "Steven Banks" <[EMAIL PROTECTED]> on 06/02/2002 08:58 AST > > Please respond to "Struts Users Mailing List" > <[EMAIL PROTECTED]> > > To: <[EMAIL PROTECTED]> > cc: > Subject: RE: bean passing > > > Stephen: > > Your answer is a solution to a problem I have been trying to grasp for > awhile. We use a connection pool and I was trying to figure out how to page > through large resultsets without having to rerun the entire query and then > move through the resultset to the correct position each time. If I > understand your solultion correctly, it does what I have been struggling to > learn. Would it be possible for you to include some sample code? > > Thanks in advance > > Steven Banks > > > >>> "Stephen Owens" <[EMAIL PROTECTED]> 02/05/02 02:34PM >>> > Mike, > > This is a deeper question that goes back to your model and the search > implementation I think. > > I tend to keep around only the position within the result set, usually > using a 'pager' bean that calculates where I'm at, how many to display, > and where to go next/previous. When my action gets the pager values > back, it recomputes the search results, and makes them available to the > view for display. So the actual search results are not persisted between > requests. I have found that persisting large result sets is too > inefficient in DB and memory resources. > > regards, > > Stephen Owens > Corner Software > > > -----Original Message----- > > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] > > Sent: Tuesday, February 05, 2002 1:27 PM > > To: [EMAIL PROTECTED] > > Subject: bean passing > > > > > > I'm new to Struts, but have read most of the doc and examples. > > > > One basic thing that I can't quite put a finger on: how do > > you pass all > > these beans around that are consumed by the jsp's? > > > > For example, say you have a bean containing user's search > > results. Your > > display page only shows 10 at a time, and uses "next" and "previous" > > buttons. So, you have to persist the results from page to page. > > > > Obviously, you could explicitly add the bean to the session in the > > action.perform(), then reference the bean with tags using > > session scope. > > This is essentially the same way you'd do it even if you > > weren't using > > Struts. > > > > So, is there a mechanism in Struts that I should be using instead? > > > > Either it is simpler than I thought, or I am missing > > something obvious. > > > > Thanks, > > Mike > > > > > > -- > > To unsubscribe, e-mail: > > <mailto:[EMAIL PROTECTED]> > > For additional commands, e-mail: > > <mailto:[EMAIL PROTECTED]> > > > > > > -- > To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> > For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> > > > > -- > To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> > For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> > > > > > > > -- > > This e-mail may contain confidential and/or privileged information. If you > are not the intended recipient (or have received this e-mail in error) please > notify the sender immediately and destroy this e-mail. Any unauthorized > copying, disclosure or distribution of the material in this e-mail is > strictly forbidden. > > > > -- > To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> > For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> > __________________________________________________ Do You Yahoo!? Send FREE Valentine eCards with Yahoo! Greetings! http://greetings.yahoo.com -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>