Tuesday 4 May 2010

What is java beans? and its advantages

Java Beans are reusable software components that separate the business logic from the presentation logic. In general, JavaBeans are simple java classes that follow certain specifications to develop dynamic content. Java Beans are required to create effective and dynamic Web pages by providing the separate Java classes instead of embedding large amount of java code directly in a JSP page. These separate java Bean classes are easier to write, compile, test, debug, and reuse. Java Bean uses getter and setter methods to invoke various methods explicitly  to use their functionality with jsp pages.
·         Java Beans components are also known as Beans.
·         Java beans can be created or manipulated by using Java-Beans-compliant application builder tools such as NetBeans IDE.

·         The Java Beans-compliant application builder tools automatically discover information about the classes, based on Java Beans specifications, and can create and manipulate these classes.


1.       Advantages of java beans in jsp
·         Developers can manage presentation code and business logic separately. By using this features big companies have separate Web and Java development teams. Both the presentation logic and business logic are developed separately, and Java Beans ensure proper communication between them.
·         Object sharing can be done between web pages simple.
We can simplify the process of request and response handling


No comments:

Post a Comment