AppletTalk.com Forum Index AppletTalk.com
Java discussions newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Possible to Have Java Bean data last between sessions?

 
Post new topic   Reply to topic    AppletTalk.com Forum Index -> Java Help
View previous topic :: View next topic  
Author Message
Guest






PostPosted: Tue Apr 11, 2006 7:12 pm    Post subject: Possible to Have Java Bean data last between sessions? Reply with quote



Hi,

I have a web site with forms that currently use a javabean to store
data. Is it possible to have the java bean (and its data) persist
between visits to the site? (In other words, if someone visits the
site, enters data, closes the browser, and then revisits the site, the
forms would read the data from the stored java bean - and preferably
display the information in the form fields).

Any help would be greatly appreciated.

Best wishes,

George Hadley
ghadley_00 (AT) yahoo (DOT) com
Back to top
Oliver Wong
Guest





PostPosted: Tue Apr 11, 2006 8:12 pm    Post subject: Re: Possible to Have Java Bean data last between sessions? Reply with quote



<ghadley_00 (AT) yahoo (DOT) com> wrote in message
news:1144782496.211875.108400 (AT) u72g2000cwu (DOT) googlegroups.com...
Quote:

I have a web site with forms that currently use a javabean to store
data. Is it possible to have the java bean (and its data) persist
between visits to the site? (In other words, if someone visits the
site, enters data, closes the browser, and then revisits the site, the
forms would read the data from the stored java bean - and preferably
display the information in the form fields).

Use a cookie to recognize the user, then do whatever logic you need to
do once you know which user you're dealing with:

http://www.apl.jhu.edu/~hall/java/Servlet-Tutorial/Servlet-Tutorial-Cookies.html

- Oliver
Back to top
Sairam
Guest





PostPosted: Thu Apr 20, 2006 3:12 pm    Post subject: Re: Possible to Have Java Bean data last between sessions? Reply with quote



Also, I would suggest you to store Java beans in Sessions.

In case of clustered environment, make sure you have a look @ this url.

http://dev2dev.bea.com/pub/a/2005/05/session_management.html

Also, Refer Sticky sessions:
http://www.caucho.com/wiki/display/RESIN/sticky+sessions

-Sai.
Back to top
Paul Hamaker
Guest





PostPosted: Thu Apr 20, 2006 10:12 pm    Post subject: Re: Possible to Have Java Bean data last between sessions? Reply with quote

You can store the bean's data in a database and retrieve it based on
the cookie and/or login authentication.
--------------------
Paul Hamaker, SEMM, teaching ICT since 1987
http://javalessons.com
Back to top
Display posts from previous:   
Post new topic   Reply to topic    AppletTalk.com Forum Index -> Java Help All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.