This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
Hi, Iam developing a webapplication using jsp, servlets and struts. Initially I need to read some values from a database and populate a bean. As these values wont change frequenty, I want to keep the bean in application context. The admin of the site can update these values, when the admin updates these values by clicking on submit button, I want to perform the same operation and re-populate the bean. Please someone suggest me how to achieve this in a efficient way.
[ Edited by Dave to remove the offending material] [ October 12, 2005: Message edited by: David O'Meara ]
I'd suggest doing what you described. Populate the bean from the database, store it in the application scope, and update it upon request from the user. Is there a particular step in there about which you're confused?