Java Beans Tutorials
The JavaBeans™ architecture is based on a component model which enables developers to create software units called components. Components are self-contained, reusable software units that can be visually assembled into composite components, applets, applications, and servlets using visual application builder tools. JavaBean components are known as beans.
A Java Bean is a software component that has been designed to be reusable in a variety of different environments. There is no restriction on the capability of a Bean. It may perform a simple function, such as checking the spelling of a document, or a complex function, such as forecasting the performance of a stock portfolio. A Bean may be visible to an end user. One example of this is a button on a graphical user interface. A Bean may also be invisible to a user. Software to decode a stream of multimedia information in real time is an example of this type of building block. Finally, a Bean may be designed to work autonomously on a user's workstation or to work in cooperation with a set of other distributed components. Software to generate a pie chart from a set of data points is an example of a Bean that can execute locally. However, a Bean that provides real-time price information from a stock or commodities exchange would need to work in cooperation with other distributed software to obtain its data.
- Ivan Lim
This tutorial shows the use of Java Beans, JSP and Servlet and how they work together. As an added bonus this tutorial also explains the use of nested properties of Java Beans using EL. The EL provides you with a simple mechanism to access nested properties of a JavaBean. For example, Listing below shows a JavaBean, which has a nested property of type Address
EL in itself is not very useful when creating web applications. In this tutorial, you’ll focus on how to use the EL to read values from JavaBeans to display within a JSP page. In previous incarnations of the JSP specification, you would have had to use code such as the following to read values from a JavaBean:
- Sam Chen
A property is a subset of a Bean's state. The values assigned to the properties determine the behavior and appearance of that component. This section discusses three types of properties: simple, Boolean, and indexed.
- Data Science
- Cloud Computing
- Java Beans
- Mac OS X
- Office 365
- Tech Reviews
Subscribe to Tutorials
javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
1. Your program contains only data retrieval command.
View Tutorial By: Govindarajan at 2012-02-08 01:02:01
3. no output as well, i'm getting portlist and portId
View Tutorial By: raul at 2015-10-09 20:05:02
7. its good,,,can it be done more simpler without usi
View Tutorial By: gahanaatherya at 2013-10-14 11:50:02
8. I need the multiple record store RMS code.Pls help
View Tutorial By: Raghuvir at 2009-05-13 23:03:44
9. Very good explanation . I was very confuse but rea
View Tutorial By: Shahabaj at 2010-08-10 08:58:39
10. Dude, that LOOP wont work i cant even understand w
View Tutorial By: Rohan at 2012-02-16 17:04:06