*
The moose likes Struts and the fly likes Query on location of global access Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Query on location of global access" Watch "Query on location of global access" New topic
Author

Query on location of global access

Babu Subbu
Greenhorn

Joined: Sep 24, 2003
Posts: 9
Hi,

I am new to web programming and struts. I have tried a few struts examples and can create a struts Action, ActionForm implementations.

I am writing a e-mail application. When the user successfully logs-in I create a collection of e-mail objects on the server (one object represents one email). I can place this collection of e-mail objects in the session, return the request and have the emails rendered on the view. But when there are say some 50,000 e-mails, I have to create an collection object of 50,000 elements and send it to the client. Since this is not advisable, I intend maintaining this large e-mail collection object on the server and passing only one page of this huge collection to the client in the session.

My question now is: Where do I maintain the huge e-mail collection object on the server between the user requests?

I understand that this approach of maintaining each users�s e-mail list on the server is not a good idea. But have decided to go with this approach for the time being.

TIA,
Babu
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Query on location of global access
 
Similar Threads
Chapter 6(Session Management) notes (HFSJ) for revision
Question on collection of Entity references
passing resulset object to client in rmi
about struts
DynaValidator reset options being reset.