Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Jsp/ Servlet Help

 
Prasad Varma
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.

Thank You.

[ Edited by Dave to remove the offending material]
[ October 12, 2005: Message edited by: David O'Meara ]
 
Steve Morrow
Ranch Hand
Posts: 657
Clojure Spring VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
 
David O'Meara
Rancher
Posts: 13459
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome to the Ranch! 'Urgent' posts don't get seen any faster than other posts and it just annoys some people so I removed it.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic