Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Persistence Of ArrayList

 
shiva sarna
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
shiva sarna
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Guys,

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


waiting for your replys.


protozoa
 
Purushoth Thambu
Ranch Hand
Posts: 425
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic