File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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 Head First Android this week in the Android forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Query on location of global access" Watch "Query on location of global access" New topic

Query on location of global access

Babu Subbu

Joined: Sep 24, 2003
Posts: 9

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.

It is sorta covered in the JavaRanch Style Guide.
subject: Query on location of global access
It's not a secret anymore!