JAVA BEANS JavaBeans can be understood as java classes that can be easily reused and composed together into an application. Any java class that follows certain design conventions can be used as a javaBean component. JSP directly supports javaBean components using JSP elements. One can easily create and initialize the value of the Beans and set their properties. · useBean: A JSP action element <jsp:useBean> initiates a JavaBean object into the JSP page. Syntax: <jsp:useBean id=”object_name” class=”class_name” scope=”page|request|session|application” | /> · setProperty: The <jsp:setProperty> action tag assigns a new value to the specified property of the specified bean object. Syntax: <jsp:setProperty name=”obj_name” property=”prop_name” value=”prop_value”/> · getPrope...
Data and Tech notes for students and professionals