struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Kevin A. Smith" <KevinA.Sm...@sas.com>
Subject RE: [OT] Should I use a persistence layer?
Date Thu, 03 Oct 2002 19:45:55 GMT
I've been playing around with Hibernate (http://hibernate.sourceforge.net) on personal project
and it seems to be pretty easy to work with and has good performance.

--Kevin

-----Original Message-----
From: Chen, Dean (Zhun) [mailto:Dean.Chen@gs.com]
Sent: Thursday, October 03, 2002 3:25 PM
To: 'Struts Users Mailing List'
Subject: RE: Should I use a persistence layer?


Thanks for this, what good persistence layers are there? Is there something
that works with struts and is simple?

Dean Chen




-----Original Message-----
From: Joe Barefoot [mailto:Joe.Barefoot@motiva.com]
Sent: Thursday, October 03, 2002 2:41 PM
To: Struts Users Mailing List
Subject: RE: Should I use a persistence layer?


Yes.  The standard approach is to only keep in memory results that are
currently on the page.  Have a persistence layer (either EJB or O/R mapping
tool, or a combination of the two) "page" the results for you. i.e., you
give it search criteria, sort criteria, a begin index, and an end index, and
it gives you back the results.  This solves two problems:  The one you are
encountering with bad results with two different windows, and the memory
problems associated with very large result sets.

There are examples of this sort of implementation out there; sorry I can't
provide links. :(

peace,
Joe

> -----Original Message-----
> From: Chen, Dean (Zhun) [mailto:Dean.Chen@gs.com]
> Sent: Thursday, October 03, 2002 10:13 AM
> To: 'Struts Users Mailing List'
> Subject: Should I use a persistence layer?
> 
> 
> Hi,
> 
> For an web application, is there a way for a user to paginate through
> (similar to google) a lot of data across multiple browser windows.
> 
> The usual way of paginating with session scope works fine. 
> However, if a
> user has 2 windows open on the same application. When he/she 
> queries on one,
> then queries on another, and then comes back to the first 
> window and click
> "Next", he/she will get bad results.
> 
> Does this lead to EJB or any other persistence layers?
> 
> Thanks,
> 
> 
> Dean Chen
> 
> 
> --
> To unsubscribe, e-mail:   
> <mailto:struts-user-unsubscribe@jakarta.apache.org>
> For additional commands, e-mail: 
> <mailto:struts-user-help@jakarta.apache.org>
> 
> 

--
To unsubscribe, e-mail:
<mailto:struts-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail:
<mailto:struts-user-help@jakarta.apache.org>

--
To unsubscribe, e-mail:   <mailto:struts-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:struts-user-help@jakarta.apache.org>


--
To unsubscribe, e-mail:   <mailto:struts-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:struts-user-help@jakarta.apache.org>


Mime
View raw message