This week's giveaway is in the EJB and other Java EE Technologies forum.
We're giving away four copies of EJB 3 in Action and have Debu Panda, Reza Rahman, Ryan Cuprak, and Michael Remijan 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 EJB 3 in Action this week in the EJB and other Java EE Technologies 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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Save user preferences in a JSP
 
Similar Threads
Retaining jsp form data when accessing a separate menu item
JMenu help
Check if updates were made before page unload
Menu with multiple selection?
To set the F1 key as shortcut for menuitem Help