This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Struts and the fly likes Persistence Of ArrayList Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Persistence Of ArrayList" Watch "Persistence Of ArrayList" New topic
Author

Persistence Of ArrayList

shiva sarna
Greenhorn

Joined: Jul 23, 2006
Posts: 23
Hi,

I am developing an address book using struts frame work.

I am facing the following problem.

The user can add address to the compose mail input box and can also append addresses. When he reloads the page the session is destryed but the arraylist persist. For example if he has add two address shiva@yahho.com,shiva@gmail.com

then he hits reload(for no reasons..)and then again click on AddressBook to add some other address(example shiva@rediffmail), what he gets in his text box is.

shiva@yahoo,shiva@gmail,shiva@rediffmail.

please advise me on this

thanks for your time.

protozoa


SCJP 5.0
shiva sarna
Greenhorn

Joined: Jul 23, 2006
Posts: 23
Hi Guys,

Please help me out with this..I have not yet received any reply.


waiting for your replys.


protozoa
Purushoth Thambu
Ranch Hand

Joined: May 24, 2003
Posts: 425
It's too abstract to answer. It might help if you can explain with more information. Where is arrayList stored? What do you mean by session is destroyed when user reloads page?. Show us ActionForm, action mapping and other relevant information as well.
nguyen van cuong
Greenhorn

Joined: Feb 20, 2006
Posts: 4
Hi sarna,

I'm not sure about your issue, but if you know that arrayList will persit until you haven't reset data in it.
i'm confusing with your sentence is "When he reloads the page the session is destryed but the arraylist persist"
pls, make

Van Cuong,

[ September 07, 2006: Message edited by: nguyen van cuong ]
[ September 07, 2006: Message edited by: nguyen van cuong ]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Persistence Of ArrayList
 
Similar Threads
How to use session Tracking in JSP
Struts 2.0 Ajax dojo
JSP list
window.opener.location.href refereshes the page only once
How to retrive messages through proxy??