File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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 OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP 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
 
Don't get me started about those stupid light bulbs.
 
subject: Query on location of global access