File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
JavaRanch » Java Forums » Java » JSP
Bookmark "Save user preferences in a JSP" Watch "Save user preferences in a JSP" New topic

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.
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?
I agree. Here's the link:
subject: Save user preferences in a JSP
Similar Threads
Menu with multiple selection?
To set the F1 key as shortcut for menuitem Help
Retaining jsp form data when accessing a separate menu item
Check if updates were made before page unload
JMenu help