• Post Reply Bookmark Topic Watch Topic
  • New Topic

controller creating javabeans

 
J Hartley
Ranch Hand
Posts: 52
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I am designing a java web application with the following structure.
-Servlet controller that redirects to appropriate jsp page
-jsp pages that access javabeans created by the servlet
-some of the javanbeans use JDBC
I am unsure as to when to create the javabeans(especially the javabean that accesses the database).
Should the javabeans be created once and shared by all jsp pages(sessions)?, or should each initial call to the controller involve the creation of a new set of javabeans for that particular session?.
Any comments/suggestions would be appreciated.
Cheers,
Joe
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!