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 The Software Craftsman this week in the Agile forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "The need of Java Bena ?" Watch "The need of Java Bena ?" New topic

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

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

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 ~ Raspberry Alpha Omega ~ Frank's Punchbarrel Blog
subject: The need of Java Bena ?