l class: The fully qualified class name of the bean being associated with the JSP. . beanName: The same name you would use to instantiate the bean, or the name you would supply to the instantiate method of java.beans.Beans. . type: Defaults to the value of the class attribute but can be a valid superclass or interface implemented by the bean class. Table 4-3: Values of the Scope Attribute Used in the JSP useBean Action Scope Description page The bean object dies after the servlet completes its service() invocation. request The bean lives for as long as the HTTP request lives, even if the HTTP request object is passed among different JSP pages. session The bean object lives as long as the session exists. application The bean object lives for the duration of the application s execution. As you might imagine, the useBean action enables you to load JavaBeans for use in your JSP pages, thereby opening your JSP pages to the full power of the Java programming language. Also, you can take advantage of using software components, something that you cannot easily do with other products.
Here java web hosting you will find professional-grade java web hosting at affordable prices.

Leave a Reply