• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Persistence Of ArrayList

 
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 425
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 ]
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic