This week's book giveaway is in the Jobs Discussion forum.
We're giving away four copies of Customer Requirements for Developers and have Marcho Behler on-line!
See this thread for details.
The moose likes JSP and the fly likes Save user preferences in a JSP Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Customer Requirements for Developers this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "Save user preferences in a JSP" Watch "Save user preferences in a JSP" New topic
Author

Save user preferences in a JSP

Priyha Jootu
Ranch Hand

Joined: Sep 13, 2001
Posts: 47
Hi All,
I am developing a page wherein i need to save some of the user's preferences and when he visits the page next time, he should see the same look as before.
ok,I will explain in detail. When a user logins to a computer in a company network, and he opens his department home page, he sees a customizable menu on the page. Each user has the choice of keeping or deleting a menu item in the page. If he wants to add the deleted menu item later on, he should be able to do so.
I want to design this using JSP or javabeans or any related technologies. I really don't want to use cookies because if it is turned off, its of no use. Can anyone please let me know how to store the user preferences and retrieve whenever he wants.
Thanks,
Priyha.
Calina Cazangiu
Ranch Hand

Joined: Feb 27, 2003
Posts: 30
I would store the user's profile in the database, have a bean that retrieves/updates the profile and set it in session scope.
Priyha Jootu
Ranch Hand

Joined: Sep 13, 2001
Posts: 47
Thanks Calina for the tip. I am doing this for a company's internal website. so the user preference must be stored in a central database server and retrieved, right?. Is there any example where I can refer to?
Thanks,
Priyha
 
Don't get me started about those stupid light bulbs.
 
subject: Save user preferences in a JSP
 
It's not a secret anymore!