This week's book giveaway is in the Mac OS forum.
We're giving away four copies of a choice of "Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac" and have Joe Kissell on-line!
See this thread for details.
The moose likes Tomcat and the fly likes jsp and bean Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Products » Tomcat
Bookmark "jsp and bean " Watch "jsp and bean " New topic
Author

jsp and bean

Shaji Ravindran
Ranch Hand

Joined: Jan 12, 2002
Posts: 39
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

Joined: Jun 25, 2001
Posts: 16095
    
  21

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 ]

Customer surveys are for companies who didn't pay proper attention to begin with.
 
GeeCON Prague 2014
 
subject: jsp and bean