aspose file tools*
The moose likes Servlets and the fly likes The need of Java Bena ? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "The need of Java Bena ?" Watch "The need of Java Bena ?" New topic
Author

The need of Java Bena ?

Raveendran Karunakaran
Ranch Hand

Joined: Jun 25, 2001
Posts: 38

If we could store values in the session then what is the need of Java Beans ?
hash eagle
Greenhorn

Joined: Jun 23, 2001
Posts: 6
to separate the business logic with the presentation
Frank Carver
Sheriff

Joined: Jan 07, 1999
Posts: 6920
In particular you don't want or need every JSP to know all the details of every value and type of variable stored in the session. Grouping these stored values into beans allows JSPs and servlets to manipulate named "clumps" of information in a meaningful way, and allows the actual implementation of these "clumps" to be independent of their use.


Read about me at frankcarver.me ~ Raspberry Alpha Omega ~ Frank's Punchbarrel Blog
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: The need of Java Bena ?