This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan 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


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
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: 15959
    
  19

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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: jsp and bean
 
Similar Threads
Bean population
help... jsp error
single bean for 2 jsps
debugging a javabean called by jsp
help getting started with JSP's