This week's giveaway is in the Spring forum.
We're giving away four copies of Learn Spring Security (video course) and have Eugen Paraschiv on-line!
See this thread for details.
Win a copy of Learn Spring Security (video course) this week in the Spring forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

jsp and bean

 
Shaji Ravindran
Ranch Hand
Posts: 39
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,
When creating javabeans for using in jsp,is it good to create a single large bean for more jsp's to use or keep the bean small for two-three jsp's,which is performance wise better option.
Thanks in advance
 
Tim Holloway
Saloon Keeper
Pie
Posts: 17989
47
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Performance-wise, it's usually better not to use Java at all. What Java is giving you is productivity.
You're far better off breaking up the project into beans based on functionality than on trying to guess where the bottlenecks will be (experience has shown repeatedly that they'll be somewhere else anyway).
Only if you actually SEE performance problems AND you've MEASURED to find out WHERE they are should you start warping the program structure and then only to the extent needed to solve the problem.
It's much easier to optimize a working program with a good logical structure than to repair a broken "optimized" program.
[ January 14, 2002: Message edited by: Tim Holloway ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic